Struct makepad_live_tokenizer::tokenizer::TokenRange
source · pub struct TokenRange {
pub start: TokenPos,
pub end: TokenPos,
}
Fields§
§start: TokenPos
§end: TokenPos
Implementations§
source§impl TokenRange
impl TokenRange
pub fn is_in_range(&self, pos: TokenPos) -> bool
Trait Implementations§
source§impl Clone for TokenRange
impl Clone for TokenRange
source§fn clone(&self) -> TokenRange
fn clone(&self) -> TokenRange
Returns a copy 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 TokenRange
impl Debug for TokenRange
source§impl Default for TokenRange
impl Default for TokenRange
source§fn default() -> TokenRange
fn default() -> TokenRange
Returns the “default value” for a type. Read more
source§impl Hash for TokenRange
impl Hash for TokenRange
source§impl Ord for TokenRange
impl Ord for TokenRange
source§fn cmp(&self, other: &TokenRange) -> Ordering
fn cmp(&self, other: &TokenRange) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<TokenRange> for TokenRange
impl PartialEq<TokenRange> for TokenRange
source§fn eq(&self, other: &TokenRange) -> bool
fn eq(&self, other: &TokenRange) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd<TokenRange> for TokenRange
impl PartialOrd<TokenRange> for TokenRange
source§fn partial_cmp(&self, other: &TokenRange) -> Option<Ordering>
fn partial_cmp(&self, other: &TokenRange) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for TokenRange
impl Eq for TokenRange
impl StructuralEq for TokenRange
impl StructuralPartialEq for TokenRange
Auto Trait Implementations§
impl RefUnwindSafe for TokenRange
impl Send for TokenRange
impl Sync for TokenRange
impl Unpin for TokenRange
impl UnwindSafe for TokenRange
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