pub enum FnBody {
Block(Vec<Stmt>),
Expr(Box<Expr>),
}Expand description
A function/arrow body: either a brace-delimited statement list or (arrow) a single expression whose value is returned.
Variants§
Trait Implementations§
impl StructuralPartialEq for FnBody
Auto Trait Implementations§
impl Freeze for FnBody
impl RefUnwindSafe for FnBody
impl Send for FnBody
impl Sync for FnBody
impl Unpin for FnBody
impl UnsafeUnpin for FnBody
impl UnwindSafe for FnBody
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