pub enum NapiEnumValue {
String(String),
Number(i32),
}
Variants§
Trait Implementations§
Source§impl Clone for NapiEnumValue
impl Clone for NapiEnumValue
Source§fn clone(&self) -> NapiEnumValue
fn clone(&self) -> NapiEnumValue
Returns a copy 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 NapiEnumValue
impl Debug for NapiEnumValue
Source§impl From<&NapiEnumValue> for Literal
impl From<&NapiEnumValue> for Literal
Source§fn from(val: &NapiEnumValue) -> Self
fn from(val: &NapiEnumValue) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for NapiEnumValue
impl RefUnwindSafe for NapiEnumValue
impl Send for NapiEnumValue
impl Sync for NapiEnumValue
impl Unpin for NapiEnumValue
impl UnwindSafe for NapiEnumValue
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