pub struct TraitMethodInfo {
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>,
pub attributes: Vec<String>,
pub span: Option<SpanInfo>,
}Expand description
Information about a trait method.
Fieldsยง
ยงname: Stringยงsignature: Stringยงparsed_signature: FunctionSignatureยงhas_default: boolDoes this method have a default implementation?
default_body: Option<String>Default implementation source
is_unsafe: boolยงdocs: Option<String>ยงattributes: Vec<String>ยงspan: Option<SpanInfo>Trait Implementationsยง
Sourceยงimpl Clone for TraitMethodInfo
impl Clone for TraitMethodInfo
Sourceยงfn clone(&self) -> TraitMethodInfo
fn clone(&self) -> TraitMethodInfo
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 moreSourceยงimpl Debug for TraitMethodInfo
impl Debug for TraitMethodInfo
Sourceยงimpl<'de> Deserialize<'de> for TraitMethodInfo
impl<'de> Deserialize<'de> for TraitMethodInfo
Sourceยงfn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementationsยง
impl Freeze for TraitMethodInfo
impl RefUnwindSafe for TraitMethodInfo
impl Send for TraitMethodInfo
impl Sync for TraitMethodInfo
impl Unpin for TraitMethodInfo
impl UnwindSafe for TraitMethodInfo
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