pub enum RustPrimitive {
Show 16 variants
UnsignedInt8,
UnsignedInt16,
UnsignedInt32,
UnsignedInt64,
UnsignedInt128,
UnsignedIntSize,
SignedInt8,
SignedInt16,
SignedInt32,
SignedInt64,
SignedInt128,
SignedIntSize,
Float32,
Float64,
Boolean,
Character,
}Expand description
A Rust primitive.
Variants§
UnsignedInt8
UnsignedInt16
UnsignedInt32
UnsignedInt64
UnsignedInt128
UnsignedIntSize
SignedInt8
SignedInt16
SignedInt32
SignedInt64
SignedInt128
SignedIntSize
Float32
Float64
Boolean
Character
Implementations§
Source§impl RustPrimitive
Rust Types
impl RustPrimitive
Rust Types
Sourcepub const fn to_type_tag(&self) -> RustType
pub const fn to_type_tag(&self) -> RustType
Converts the Rust primitive to a Rust type.
Trait Implementations§
Source§impl Clone for RustPrimitive
impl Clone for RustPrimitive
Source§fn clone(&self) -> RustPrimitive
fn clone(&self) -> RustPrimitive
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RustPrimitive
impl Debug for RustPrimitive
Source§impl Expression for RustPrimitive
impl Expression for RustPrimitive
Source§fn write(&self, b: &mut CodeBuffer)
fn write(&self, b: &mut CodeBuffer)
Writes the code to the buffer
b.Source§impl From<RustPrimitive> for RustType
impl From<RustPrimitive> for RustType
Source§fn from(primitive: RustPrimitive) -> Self
fn from(primitive: RustPrimitive) -> Self
Converts to this type from the input type.
Source§impl Hash for RustPrimitive
impl Hash for RustPrimitive
Source§impl Ord for RustPrimitive
impl Ord for RustPrimitive
Source§fn cmp(&self, other: &RustPrimitive) -> Ordering
fn cmp(&self, other: &RustPrimitive) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for RustPrimitive
impl PartialEq for RustPrimitive
Source§impl PartialOrd for RustPrimitive
impl PartialOrd for RustPrimitive
Source§impl WithName for RustPrimitive
impl WithName for RustPrimitive
Source§fn write_name(&self, b: &mut CodeBuffer)
fn write_name(&self, b: &mut CodeBuffer)
Writes the name.
impl Copy for RustPrimitive
impl Eq for RustPrimitive
impl StructuralPartialEq for RustPrimitive
Auto Trait Implementations§
impl Freeze for RustPrimitive
impl RefUnwindSafe for RustPrimitive
impl Send for RustPrimitive
impl Sync for RustPrimitive
impl Unpin for RustPrimitive
impl UnwindSafe for RustPrimitive
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