pub enum TypeHint {
Long,
Double,
Int,
Float,
Bool,
LongArray,
DoubleArray,
IntArray,
FloatArray,
BooleanArray,
ObjectArray,
}Expand description
A primitive type hint usable for unboxing / array specialization.
Variants§
Long
^long — unboxed i64.
Double
^double — unboxed f64.
Int
^int — 32-bit int (treated as a long-family scalar for inference).
Float
^float — 32-bit float (treated as a double-family scalar).
Bool
^boolean — unboxed i8 truth value.
LongArray
^longs — array of i64.
DoubleArray
^doubles — array of f64.
IntArray
^ints — array of i32.
FloatArray
^floats — array of f32.
BooleanArray
^booleans — array of bool.
ObjectArray
^objects — array of boxed values.
Implementations§
Source§impl TypeHint
impl TypeHint
Trait Implementations§
impl Copy for TypeHint
impl Eq for TypeHint
impl StructuralPartialEq for TypeHint
Auto Trait Implementations§
impl Freeze for TypeHint
impl RefUnwindSafe for TypeHint
impl Send for TypeHint
impl Sync for TypeHint
impl Unpin for TypeHint
impl UnsafeUnpin for TypeHint
impl UnwindSafe for TypeHint
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