pub struct Block<Body>(pub Body);Expand description
An unlabeled block. This can be used in many contexts, including merely organizing the code.
Tuple Fields§
§0: BodyTrait Implementations§
Auto Trait Implementations§
impl<Body> Freeze for Block<Body>where
Body: Freeze,
impl<Body> RefUnwindSafe for Block<Body>where
Body: RefUnwindSafe,
impl<Body> Send for Block<Body>where
Body: Send,
impl<Body> Sync for Block<Body>where
Body: Sync,
impl<Body> Unpin for Block<Body>where
Body: Unpin,
impl<Body> UnwindSafe for Block<Body>where
Body: 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