#[non_exhaustive]pub struct TypeInfo { /* private fields */ }Expand description
Metrics information for one Rust type declaration.
Implementations§
Source§impl TypeInfo
impl TypeInfo
Sourcepub fn simple_name(&self) -> &str
pub fn simple_name(&self) -> &str
Returns the unqualified declared name.
Sourcepub fn methods(&self) -> &[MethodInfo]
pub fn methods(&self) -> &[MethodInfo]
Returns functions with a self receiver declared by or associated with this type.
Sourcepub fn inherent_methods(&self) -> &[MethodInfo]
pub fn inherent_methods(&self) -> &[MethodInfo]
Returns only methods declared in unambiguously associated inherent impl blocks.
Trait declarations and trait-impl methods remain visible through Self::methods but do
not participate in this collection.
Sourcepub fn associated_functions(&self) -> &[String]
pub fn associated_functions(&self) -> &[String]
Returns receiver-free associated function names.
Trait Implementations§
impl Eq for TypeInfo
impl StructuralPartialEq for TypeInfo
Auto Trait Implementations§
impl Freeze for TypeInfo
impl RefUnwindSafe for TypeInfo
impl Send for TypeInfo
impl Sync for TypeInfo
impl Unpin for TypeInfo
impl UnwindSafe for TypeInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.