pub struct DeclaredMethod<'a> {
pub module: &'a str,
pub name: &'a str,
pub entry: &'a FnEntry,
}Expand description
One method of a type, and the module whose source declares it.
Fields§
§module: &'a strThe module that declares this method: the type’s own, or one that conforms the type to a trait of its own.
name: &'a strThe method’s name.
entry: &'a FnEntryThe method itself, with the facts derived from it.
Trait Implementations§
Source§impl<'a> Clone for DeclaredMethod<'a>
impl<'a> Clone for DeclaredMethod<'a>
Source§fn clone(&self) -> DeclaredMethod<'a>
fn clone(&self) -> DeclaredMethod<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl<'a> Copy for DeclaredMethod<'a>
Auto Trait Implementations§
impl<'a> Freeze for DeclaredMethod<'a>
impl<'a> RefUnwindSafe for DeclaredMethod<'a>
impl<'a> Send for DeclaredMethod<'a>
impl<'a> Sync for DeclaredMethod<'a>
impl<'a> Unpin for DeclaredMethod<'a>
impl<'a> UnsafeUnpin for DeclaredMethod<'a>
impl<'a> UnwindSafe for DeclaredMethod<'a>
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