pub struct TraitFunction {
pub id: HirId,
pub name: Symbol,
pub params: Vec<Param>,
pub return_ty: Ty,
pub body: Option<Block>,
pub span: Span,
}Fields§
§id: HirId§name: Symbol§params: Vec<Param>§return_ty: Ty§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 moreAuto 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