pub struct Isolate<Type> {
pub token: Type,
}
Expand description
Use Token to wrap any Type
::Lexer to try to
consume all WhiteSpaces before and after
the given Lexer
WARNING:
This should generally be used only when trying to
group base tokens together. If we wanted to put
together [
, TOKEN
and ]
for example, we
would want to wrap each of the parenthesis with
Isolate to ensure that [ TOKEN ]
is validly
evaluated as well. However there is no need to wrap
TOKEN
itself.
Fields§
§token: Type
Trait Implementations§
Auto Trait Implementations§
impl<Type> Freeze for Isolate<Type>where
Type: Freeze,
impl<Type> RefUnwindSafe for Isolate<Type>where
Type: RefUnwindSafe,
impl<Type> Send for Isolate<Type>where
Type: Send,
impl<Type> Sync for Isolate<Type>where
Type: Sync,
impl<Type> Unpin for Isolate<Type>where
Type: Unpin,
impl<Type> UnwindSafe for Isolate<Type>where
Type: 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