pub enum BlockKind {
Curly,
Square,
Paren,
}Expand description
§5.2 L1710-1719: The associated token kind of a simple block,
mirroring the opening { / [ / (.
Variants§
Curly
{}-block (L1718): opens with {-token, closes with
}-token.
Square
[]-block (L1718): opens with [-token, closes with
]-token.
Paren
()-block (L1718): opens with (-token, closes with
)-token.
Trait Implementations§
impl Copy for BlockKind
impl Eq for BlockKind
impl StructuralPartialEq for BlockKind
Auto Trait Implementations§
impl Freeze for BlockKind
impl RefUnwindSafe for BlockKind
impl Send for BlockKind
impl Sync for BlockKind
impl Unpin for BlockKind
impl UnsafeUnpin for BlockKind
impl UnwindSafe for BlockKind
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