#[non_exhaustive]pub struct ImplInfo { /* private fields */ }Expand description
One inherent or trait implementation block.
Implementations§
Source§impl ImplInfo
impl ImplInfo
Sourcepub fn target_type(&self) -> &str
pub fn target_type(&self) -> &str
Returns the syntactic implementation target path.
Sourcepub fn trait_name(&self) -> Option<&str>
pub fn trait_name(&self) -> Option<&str>
Returns the implemented trait path, or None for an inherent impl.
Sourcepub fn methods(&self) -> &[MethodInfo]
pub fn methods(&self) -> &[MethodInfo]
Returns functions in this impl that have a self receiver.
Sourcepub fn associated_functions(&self) -> &[String]
pub fn associated_functions(&self) -> &[String]
Returns receiver-free associated function names.
Sourcepub const fn is_trait_impl(&self) -> bool
pub const fn is_trait_impl(&self) -> bool
Returns whether this is a trait implementation.
Trait Implementations§
impl Eq for ImplInfo
impl StructuralPartialEq for ImplInfo
Auto Trait Implementations§
impl Freeze for ImplInfo
impl RefUnwindSafe for ImplInfo
impl Send for ImplInfo
impl Sync for ImplInfo
impl Unpin for ImplInfo
impl UnwindSafe for ImplInfo
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.