pub struct Function<T> {
pub name: Ident,
pub args: Vec<Arg<T>>,
pub ret: T,
pub body: T,
pub doc: Option<Doc>,
pub is_async: bool,
pub vis: Visibility,
pub attributes: Vec<T>,
}
Fields§
§name: Ident
§args: Vec<Arg<T>>
§ret: T
§body: T
§doc: Option<Doc>
§is_async: bool
§vis: Visibility
§attributes: Vec<T>
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<T> Freeze for Function<T>where
T: Freeze,
impl<T> RefUnwindSafe for Function<T>where
T: RefUnwindSafe,
impl<T> Send for Function<T>where
T: Send,
impl<T> Sync for Function<T>where
T: Sync,
impl<T> Unpin for Function<T>where
T: Unpin,
impl<T> UnwindSafe for Function<T>where
T: UnwindSafe,
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