pub struct TraitMethod {
pub name: String,
pub lifetime_params: Vec<String>,
pub type_params: Vec<String>,
pub params: Vec<Param>,
pub return_type: Option<Type>,
pub has_body: bool,
pub body: Option<Vec<Stmt>>,
pub span: Span,
}Expand description
Trait method
Fields§
§name: String§lifetime_params: Vec<String>§type_params: Vec<String>§params: Vec<Param>§return_type: Option<Type>§has_body: bool§body: Option<Vec<Stmt>>§span: SpanTrait 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 (const: unstable) · 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 UnsafeUnpin 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