pub enum LiveToken {
Punct(LiveId),
Ident(LiveId),
Open(Delim),
Close(Delim),
Dependency {
index: u32,
len: u32,
},
String {
index: u32,
len: u32,
},
Bool(bool),
Int(i64),
Float(f64),
Color(u32),
Eof,
}
Variants
Punct(LiveId)
Ident(LiveId)
Open(Delim)
Close(Delim)
Dependency
String
Bool(bool)
Int(i64)
Float(f64)
Color(u32)
Eof
Implementations
sourceimpl LiveToken
impl 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
pub fn from_full_token(full_token: FullToken) -> Option<Self>
Trait Implementations
impl Copy for LiveToken
impl StructuralPartialEq for LiveToken
Auto Trait Implementations
impl RefUnwindSafe for LiveToken
impl Send for LiveToken
impl Sync for LiveToken
impl Unpin for LiveToken
impl UnwindSafe for LiveToken
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more