pub struct TraitMethod {
pub name: String,
pub params: Vec<Param>,
pub return_type: Option<Type>,
pub effects: Vec<Effect>,
pub default_impl: Option<Block>,
pub span: Span,
}Fields§
§name: String§params: Vec<Param>§return_type: Option<Type>§effects: Vec<Effect>§default_impl: Option<Block>§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 · 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