Struct makepad_live_compiler::live_token::TokenWithSpan
source · pub struct TokenWithSpan {
pub span: TextSpan,
pub token: LiveToken,
}
Fields§
§span: TextSpan
§token: LiveToken
Methods from Deref<Target = LiveToken>§
pub fn as_float(&self) -> Option<f64>
pub fn as_vec4(&self) -> Option<Vec4>
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_bool(&self) -> bool
pub fn is_parsed_number(&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
pub fn is_parse_equal(&self, other: &LiveToken) -> bool
Trait Implementations§
source§impl Clone for TokenWithSpan
impl Clone for TokenWithSpan
source§fn clone(&self) -> TokenWithSpan
fn clone(&self) -> TokenWithSpan
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 TokenWithSpan
impl Debug for TokenWithSpan
source§impl Deref for TokenWithSpan
impl Deref for TokenWithSpan
source§impl DerefMut for TokenWithSpan
impl DerefMut for TokenWithSpan
source§impl Display for TokenWithSpan
impl Display for TokenWithSpan
source§impl PartialEq<TokenWithSpan> for TokenWithSpan
impl PartialEq<TokenWithSpan> for TokenWithSpan
source§fn eq(&self, other: &TokenWithSpan) -> bool
fn eq(&self, other: &TokenWithSpan) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TokenWithSpan
Auto Trait Implementations§
impl RefUnwindSafe for TokenWithSpan
impl !Send for TokenWithSpan
impl !Sync for TokenWithSpan
impl Unpin for TokenWithSpan
impl UnwindSafe for TokenWithSpan
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