pub enum SwiftLit {
Int(i64),
Bool(bool),
Str(String),
Nil,
Float(f64),
}Expand description
Swift literal values.
Variants§
Int(i64)
Integer literal: 42, -7
Bool(bool)
Boolean literal: true or false
Str(String)
String literal: "hello"
Nil
nil literal
Float(f64)
Float/Double literal: 3.14
Trait Implementations§
impl StructuralPartialEq for SwiftLit
Auto Trait Implementations§
impl Freeze for SwiftLit
impl RefUnwindSafe for SwiftLit
impl Send for SwiftLit
impl Sync for SwiftLit
impl Unpin for SwiftLit
impl UnsafeUnpin for SwiftLit
impl UnwindSafe for SwiftLit
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