pub enum Delimiter {
Parenthesis,
Brace,
Bracket,
None,
}
Expand description
The delimiter of a group of tokens
Variants§
Parenthesis
( ... )
Brace
{ ... }
Bracket
[ ... ]
None
Ø ... Ø
An invisible delimiter around something like $var
Ensures that if $var is substituted in as 1 + 2
order of operations is preserved
Trait Implementations§
impl Copy for Delimiter
impl Eq for Delimiter
impl StructuralPartialEq for Delimiter
Auto Trait Implementations§
impl Freeze for Delimiter
impl RefUnwindSafe for Delimiter
impl Send for Delimiter
impl Sync for Delimiter
impl Unpin for Delimiter
impl UnwindSafe for Delimiter
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