pub struct MethodDetails {Show 13 fields
pub name: String,
pub path: String,
pub signature: String,
pub parsed_signature: FunctionSignature,
pub has_body: bool,
pub body_source: Option<String>,
pub body_tokens: Option<Vec<Token>>,
pub is_unsafe: bool,
pub is_const: bool,
pub is_async: bool,
pub docs: Option<String>,
pub attributes: Vec<String>,
pub span: Option<SpanInfo>,
}Expand description
Detailed information about a method.
Fieldsยง
ยงname: Stringยงpath: Stringยงsignature: StringFull signature as a string
parsed_signature: FunctionSignatureParsed signature components
has_body: boolWhether this has a default implementation
body_source: Option<String>Method body source code (if available)
body_tokens: Option<Vec<Token>>Body as tokens (simplified AST)
is_unsafe: boolWhether this is unsafe
is_const: boolWhether this is const
is_async: boolWhether this is async
docs: Option<String>Doc comments
attributes: Vec<String>Attributes
span: Option<SpanInfo>Trait Implementationsยง
Sourceยงimpl Clone for MethodDetails
impl Clone for MethodDetails
Sourceยงfn clone(&self) -> MethodDetails
fn clone(&self) -> MethodDetails
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 MethodDetails
impl Debug for MethodDetails
Sourceยงimpl<'de> Deserialize<'de> for MethodDetails
impl<'de> Deserialize<'de> for MethodDetails
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 MethodDetails
impl RefUnwindSafe for MethodDetails
impl Send for MethodDetails
impl Sync for MethodDetails
impl Unpin for MethodDetails
impl UnwindSafe for MethodDetails
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