pub struct TraitMethod {
pub name: String,
pub signature: String,
pub parsed_signature: FunctionSignature,
pub has_default: bool,
pub default_body: Option<String>,
pub is_unsafe: bool,
pub docs: Option<String>,
}Expand description
A method defined in a trait.
Fieldsยง
ยงname: Stringยงsignature: Stringยงparsed_signature: FunctionSignatureยงhas_default: boolยงdefault_body: Option<String>ยงis_unsafe: boolยงdocs: Option<String>Trait Implementationsยง
Sourceยงimpl Clone for TraitMethod
impl Clone for TraitMethod
Sourceยงfn clone(&self) -> TraitMethod
fn clone(&self) -> TraitMethod
Returns a duplicate of the value. Read more
1.0.0 ยท Sourceยงfn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementationsยง
impl Freeze for TraitMethod
impl RefUnwindSafe for TraitMethod
impl Send for TraitMethod
impl Sync for TraitMethod
impl Unpin for TraitMethod
impl UnwindSafe for TraitMethod
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