pub enum NativeScalar {
I8(i8),
U8(u8),
I16(i16),
U16(u16),
I32(i32),
I64(i64),
U32(u32),
U64(u64),
Isize(isize),
Usize(usize),
Ptr(usize),
F32(f32),
}Expand description
Width-aware native scalar for C interop.
These values preserve their ABI width across VM boundaries so C wrappers
can avoid lossy i64 normalization.
Variants§
I8(i8)
U8(u8)
I16(i16)
U16(u16)
I32(i32)
I64(i64)
U32(u32)
U64(u64)
Isize(isize)
Usize(usize)
Ptr(usize)
F32(f32)
Implementations§
Trait Implementations§
Source§impl Clone for NativeScalar
impl Clone for NativeScalar
Source§fn clone(&self) -> NativeScalar
fn clone(&self) -> NativeScalar
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 NativeScalar
impl Debug for NativeScalar
Source§impl Display for NativeScalar
impl Display for NativeScalar
Source§impl PartialEq for NativeScalar
impl PartialEq for NativeScalar
impl Copy for NativeScalar
impl StructuralPartialEq for NativeScalar
Auto Trait Implementations§
impl Freeze for NativeScalar
impl RefUnwindSafe for NativeScalar
impl Send for NativeScalar
impl Sync for NativeScalar
impl Unpin for NativeScalar
impl UnsafeUnpin for NativeScalar
impl UnwindSafe for NativeScalar
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