[−][src]Struct napi::JsNumber
Implementations
impl JsNumber
[src]
pub fn into_unknown(self) -> Result<JsUnknown>
[src]
pub fn coerce_to_number(self) -> Result<JsNumber>
[src]
pub fn coerce_to_string(self) -> Result<JsString>
[src]
pub fn coerce_to_object(self) -> Result<JsObject>
[src]
pub fn is_date(&self) -> Result<bool>
[src]
impl JsNumber
[src]
pub fn from_raw_unchecked(env: napi_env, value: napi_value) -> Self
[src]
Trait Implementations
impl Debug for JsNumber
[src]
impl NapiValue for JsNumber
[src]
fn from_raw(env: napi_env, value: napi_value) -> Result<JsNumber>
[src]
fn raw_value(&self) -> napi_value
[src]
impl TryFrom<JsNumber> for usize
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: JsNumber) -> Result<usize>
[src]
impl TryFrom<JsNumber> for u32
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: JsNumber) -> Result<u32>
[src]
impl TryFrom<JsNumber> for i32
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: JsNumber) -> Result<i32>
[src]
impl TryFrom<JsNumber> for i64
[src]
type Error = Error
The type returned in the event of a conversion error.
fn try_from(value: JsNumber) -> Result<i64>
[src]
impl TryFrom<JsNumber> for f64
[src]
Auto Trait Implementations
impl RefUnwindSafe for JsNumber
impl !Send for JsNumber
impl !Sync for JsNumber
impl Unpin for JsNumber
impl UnwindSafe for JsNumber
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,