pub struct Function {
pub name: String,
pub generics: Vec<Generic>,
pub params: Vec<Param>,
pub return_type: Option<Type>,
pub effects: Vec<Effect>,
pub body: Block,
pub visibility: Visibility,
pub span: Span,
}Fields§
§name: String§generics: Vec<Generic>§params: Vec<Param>§return_type: Option<Type>§effects: Vec<Effect>§body: Block§visibility: Visibility§span: SpanTrait Implementations§
Auto Trait Implementations§
impl Freeze for Function
impl RefUnwindSafe for Function
impl Send for Function
impl Sync for Function
impl Unpin for Function
impl UnwindSafe for Function
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