pub struct Lit {
pub kind: LitKind,
pub symbol: String,
}Fields§
§kind: LitKind§symbol: StringImplementations§
source§impl Lit
impl Lit
pub fn new(kind: LitKind, symbol: impl Into<String>) -> Self
pub fn uint(symbol: impl Into<String>) -> Self
pub fn int(symbol: impl Into<String>) -> Self
pub fn float(symbol: impl Into<String>) -> Self
pub fn str(symbol: impl Into<String>) -> Self
pub fn bool(symbol: impl Into<String>) -> Self
Trait Implementations§
source§impl From<Lit> for TokenStream
impl From<Lit> for TokenStream
impl Eq for Lit
impl StructuralEq for Lit
impl StructuralPartialEq for Lit
Auto Trait Implementations§
impl RefUnwindSafe for Lit
impl Send for Lit
impl Sync for Lit
impl Unpin for Lit
impl UnwindSafe for Lit
Blanket Implementations§
source§impl<E> Accessible for Ewhere
E: Into<Expr>,
impl<E> Accessible for Ewhere E: Into<Expr>,
source§impl<E> Assignable for Ewhere
E: Into<Expr>,
impl<E> Assignable for Ewhere E: Into<Expr>,
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