pub(super) enum TrailingBlocks {
Allowed,
Forbidden,
}Expand description
Whether call() { … } may take a trailing block here. It is forbidden where a {
opens the statement’s own block, as in if ready() { … }.
Variants§
Trait Implementations§
Source§impl Clone for TrailingBlocks
impl Clone for TrailingBlocks
Source§fn clone(&self) -> TrailingBlocks
fn clone(&self) -> TrailingBlocks
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for TrailingBlocks
Source§impl Debug for TrailingBlocks
impl Debug for TrailingBlocks
impl Eq for TrailingBlocks
Source§impl PartialEq for TrailingBlocks
impl PartialEq for TrailingBlocks
impl StructuralPartialEq for TrailingBlocks
Auto Trait Implementations§
impl Freeze for TrailingBlocks
impl RefUnwindSafe for TrailingBlocks
impl Send for TrailingBlocks
impl Sync for TrailingBlocks
impl Unpin for TrailingBlocks
impl UnsafeUnpin for TrailingBlocks
impl UnwindSafe for TrailingBlocks
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