Module napi::bindgen_prelude[][src]

Re-exports

pub use crate::assert_type_of;
pub use crate::check_status;
pub use crate::check_status_or_throw;
pub use crate::error;
pub use crate::sys;
pub use crate::type_of;

Modules

Structs

zero copy u8 vector shared between rust and napi

Represent JsError. Return this Error in js_function, napi-rs will throw it as JsError for you. If you want throw it as TypeError or RangeError, you can use JsTypeError/JsRangeError::from(Error).throw_into(env)

Enums

Traits

Functions

Type Definitions

Attribute Macros

Marks a function or static variable as a library/executable constructor. This uses OS-specific linker sections to call a specific function at load time.