pub struct SimpleToken {
pub kind: SimpleTokenKind,
pub range: TextRange,
}Fields§
§kind: SimpleTokenKind§range: TextRangeImplementations§
Source§impl SimpleToken
impl SimpleToken
pub const fn kind(&self) -> SimpleTokenKind
Trait Implementations§
Source§impl Clone for SimpleToken
impl Clone for SimpleToken
Source§fn clone(&self) -> SimpleToken
fn clone(&self) -> SimpleToken
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SimpleToken
impl Debug for SimpleToken
Source§impl Hash for SimpleToken
impl Hash for SimpleToken
Source§impl PartialEq for SimpleToken
impl PartialEq for SimpleToken
Source§impl Ranged for SimpleToken
impl Ranged for SimpleToken
impl Eq for SimpleToken
impl StructuralPartialEq for SimpleToken
Auto Trait Implementations§
impl Freeze for SimpleToken
impl RefUnwindSafe for SimpleToken
impl Send for SimpleToken
impl Sync for SimpleToken
impl Unpin for SimpleToken
impl UnsafeUnpin for SimpleToken
impl UnwindSafe for SimpleToken
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