pub enum Type {
Void,
MaybeSignedInt,
Int,
SignedInt,
Float,
Bool,
String,
}Expand description
A type in the Somni language.
Variants§
Void
Represents no value, used for e.g. functions that do not return a value.
MaybeSignedInt
Represents integer that may be signed or unsigned.
Int
Represents an unsigned integer.
SignedInt
Represents a signed integer.
Float
Represents a floating point number.
Bool
Represents a boolean value.
String
Represents a string value.
Trait Implementations§
impl Copy for Type
impl Eq for Type
impl StructuralPartialEq for Type
Auto Trait Implementations§
impl Freeze for Type
impl RefUnwindSafe for Type
impl Send for Type
impl Sync for Type
impl Unpin for Type
impl UnwindSafe for Type
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