pub struct TraitFunction {
pub name: Ident,
pub generics: GenericParams,
pub params: Vec<Param>,
pub return_type: Option<Type>,
pub where_clause: WhereClause,
pub body: Option<Block>,
pub span: Span,
}Fields§
§name: Ident§generics: GenericParams§params: Vec<Param>§return_type: Option<Type>§where_clause: WhereClause§body: Option<Block>§span: SpanTrait Implementations§
Source§impl Clone for TraitFunction
impl Clone for TraitFunction
Source§fn clone(&self) -> TraitFunction
fn clone(&self) -> TraitFunction
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 TraitFunction
impl Debug for TraitFunction
Source§impl PartialEq for TraitFunction
impl PartialEq for TraitFunction
impl StructuralPartialEq for TraitFunction
Auto Trait Implementations§
impl Freeze for TraitFunction
impl RefUnwindSafe for TraitFunction
impl Send for TraitFunction
impl Sync for TraitFunction
impl Unpin for TraitFunction
impl UnwindSafe for TraitFunction
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