pub enum FunctionBody<'source> {
Block(Box<Block<'source>>),
Never,
}Variants§
Block(Box<Block<'source>>)
Never
Occurs when with’s semicolon is absent.
Used to name only the type of a function.
Trait Implementations§
Source§impl<'source> Debug for FunctionBody<'source>
impl<'source> Debug for FunctionBody<'source>
Source§impl<'source> PartialEq for FunctionBody<'source>
impl<'source> PartialEq for FunctionBody<'source>
impl<'source> Eq for FunctionBody<'source>
impl<'source> StructuralPartialEq for FunctionBody<'source>
Auto Trait Implementations§
impl<'source> Freeze for FunctionBody<'source>
impl<'source> RefUnwindSafe for FunctionBody<'source>
impl<'source> Send for FunctionBody<'source>
impl<'source> Sync for FunctionBody<'source>
impl<'source> Unpin for FunctionBody<'source>
impl<'source> UnwindSafe for FunctionBody<'source>
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