Struct makepad_live_tokenizer::full_token::TokenWithLen
source · pub struct TokenWithLen {
pub len: usize,
pub token: FullToken,
}
Fields§
§len: usize
§token: FullToken
Methods from Deref<Target = FullToken>§
pub fn is_whitespace(&self) -> bool
pub fn is_comment(&self) -> bool
pub fn is_ws_or_comment(&self) -> bool
pub fn is_open(&self) -> bool
pub fn is_close(&self) -> bool
pub fn is_open_delim(&self, delim: Delim) -> bool
pub fn is_close_delim(&self, delim: Delim) -> bool
pub fn is_int(&self) -> bool
pub fn is_float(&self) -> bool
pub fn is_color(&self) -> bool
pub fn is_parsed_number(&self) -> bool
pub fn is_bool(&self) -> bool
pub fn is_value_type(&self) -> bool
pub fn is_ident(&self) -> bool
pub fn is_punct(&self) -> bool
pub fn is_punct_id(&self, id: LiveId) -> bool
Trait Implementations§
source§impl Clone for TokenWithLen
impl Clone for TokenWithLen
source§fn clone(&self) -> TokenWithLen
fn clone(&self) -> TokenWithLen
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 TokenWithLen
impl Debug for TokenWithLen
source§impl Deref for TokenWithLen
impl Deref for TokenWithLen
source§impl DerefMut for TokenWithLen
impl DerefMut for TokenWithLen
source§impl PartialEq<TokenWithLen> for TokenWithLen
impl PartialEq<TokenWithLen> for TokenWithLen
source§fn eq(&self, other: &TokenWithLen) -> bool
fn eq(&self, other: &TokenWithLen) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TokenWithLen
Auto Trait Implementations§
impl RefUnwindSafe for TokenWithLen
impl !Send for TokenWithLen
impl !Sync for TokenWithLen
impl Unpin for TokenWithLen
impl UnwindSafe for TokenWithLen
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