Docs.rs
  • napi-2.13.3
    • napi 2.13.3
    • Docs.rs crate page
    • MIT
    • Links
    • Repository
    • crates.io
    • Source
    • Owners
    • aqrln
    • Brooooooklyn
    • Dependencies
      • anyhow ^1 normal
      • bitflags ^2 normal
      • chrono ^0.4 normal
      • ctor ^0.2 normal
      • encoding_rs ^0.8 normal
      • napi-sys ^2.2.3 normal
      • once_cell ^1.16 normal
      • serde ^1 normal
      • serde_json ^1 normal
      • tokio ^1 normal
      • napi-derive ^2.10.1 normal
      • tokio ^1 normal
    • Versions
    • 37.5% of the crate is documented
  • Go to latest version
  • Platform
    • i686-pc-windows-msvc
    • i686-unknown-linux-gnu
    • x86_64-apple-darwin
    • x86_64-pc-windows-msvc
    • x86_64-unknown-linux-gnu
  • Feature flags
  • docs.rs
    • About docs.rs
    • Badges
    • Builds
    • Metadata
    • Shorthand URLs
    • Download
    • Rustdoc JSON
    • Build queue
    • Privacy policy
  • Rust
    • Rust website
    • The Book
    • Standard Library API Reference
    • Rust by Example
    • The Cargo Guide
    • Clippy Documentation
logo

logo

NapiValue

Required Methods

  • from_raw
  • from_raw_unchecked

Implementors

In napi

?
Change settings

Trait napi::NapiValue

source ·
pub trait NapiValue: Sized + NapiRaw {
    // Required methods
    unsafe fn from_raw(env: napi_env, value: napi_value) -> Result<Self>;
    unsafe fn from_raw_unchecked(env: napi_env, value: napi_value) -> Self;
}

Required Methods§

source

unsafe fn from_raw(env: napi_env, value: napi_value) -> Result<Self>

source

unsafe fn from_raw_unchecked(env: napi_env, value: napi_value) -> Self

Implementors§

source§

impl NapiValue for JsUnknown

source§

impl NapiValue for JsArrayBuffer

source§

impl NapiValue for JsBigInt

source§

impl NapiValue for JsBoolean

source§

impl NapiValue for JsBuffer

source§

impl NapiValue for JsDataView

source§

impl NapiValue for JsDate

source§

impl NapiValue for JsExternal

source§

impl NapiValue for JsFunction

source§

impl NapiValue for JsGlobal

source§

impl NapiValue for JsNull

source§

impl NapiValue for JsNumber

source§

impl NapiValue for JsObject

source§

impl NapiValue for JsString

source§

impl NapiValue for JsSymbol

source§

impl NapiValue for JsTimeout

source§

impl NapiValue for JsTypedArray

source§

impl NapiValue for JsUndefined