Enum napi::bindgen_prelude::ValueType
source · [−]#[repr(i32)]
pub enum ValueType {
Undefined,
Null,
Boolean,
Number,
String,
Symbol,
Object,
Function,
External,
BigInt,
Unknown,
}
Variants
Undefined
Null
Boolean
Number
String
Symbol
Object
Function
External
BigInt
Unknown
Trait Implementations
sourceimpl Ord for ValueType
impl Ord for ValueType
sourceimpl PartialOrd<ValueType> for ValueType
impl PartialOrd<ValueType> for ValueType
sourcefn partial_cmp(&self, other: &ValueType) -> Option<Ordering>
fn partial_cmp(&self, other: &ValueType) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for ValueType
impl Eq for ValueType
impl StructuralEq for ValueType
impl StructuralPartialEq for ValueType
Auto Trait Implementations
impl RefUnwindSafe for ValueType
impl Send for ValueType
impl Sync for ValueType
impl Unpin for ValueType
impl UnwindSafe for ValueType
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more