pub enum CSharpLit {
Int(i64),
Long(i64),
Bool(bool),
Str(String),
Null,
Float(f64),
Double(f64),
Char(char),
}Expand description
C# literal values.
Variants§
Int(i64)
Integer literal: 42, -7
Long(i64)
Long literal: 42L
Bool(bool)
Boolean literal: true / false
Str(String)
String literal: "hello"
Null
null literal
Float(f64)
Float literal: 3.14f
Double(f64)
Double literal: 3.14
Char(char)
Character literal: 'x'
Trait Implementations§
impl StructuralPartialEq for CSharpLit
Auto Trait Implementations§
impl Freeze for CSharpLit
impl RefUnwindSafe for CSharpLit
impl Send for CSharpLit
impl Sync for CSharpLit
impl Unpin for CSharpLit
impl UnsafeUnpin for CSharpLit
impl UnwindSafe for CSharpLit
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