pub struct AnyToken {
pub token_type: TokenType,
pub range: LocationRange,
}Fields§
§token_type: TokenType§range: LocationRangeTrait Implementations§
Source§impl Ord for AnyToken
impl Ord for AnyToken
Source§impl PartialOrd for AnyToken
impl PartialOrd for AnyToken
impl Copy for AnyToken
impl Eq for AnyToken
impl StructuralPartialEq for AnyToken
Auto Trait Implementations§
impl Freeze for AnyToken
impl RefUnwindSafe for AnyToken
impl Send for AnyToken
impl Sync for AnyToken
impl Unpin for AnyToken
impl UnwindSafe for AnyToken
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more