neon_runtime/nan/tag.rs
1//! Facilities for identifying the type of a `v8::Local` handle.
2
3/// Indicates if the value type is `Undefined`.
4pub use neon_sys::Neon_Tag_IsUndefined as is_undefined;
5
6/// Indicates if the value type is `Null`.
7pub use neon_sys::Neon_Tag_IsNull as is_null;
8
9/// Indicates if the value type is `Number`.
10pub use neon_sys::Neon_Tag_IsNumber as is_number;
11
12/// Indicates if the value type is `Boolean`.
13pub use neon_sys::Neon_Tag_IsBoolean as is_boolean;
14
15/// Indicates if the value type is `String`.
16pub use neon_sys::Neon_Tag_IsString as is_string;
17
18/// Indicates if the value type is `Object`.
19pub use neon_sys::Neon_Tag_IsObject as is_object;
20
21/// Indicates if the value type is `Array`.
22pub use neon_sys::Neon_Tag_IsArray as is_array;
23
24/// Indicates if the value type is `Function`.
25pub use neon_sys::Neon_Tag_IsFunction as is_function;
26
27/// Indicates if the value type is `Error`.
28pub use neon_sys::Neon_Tag_IsError as is_error;
29
30/// Indicates if the value type is `Buffer`.
31pub use neon_sys::Neon_Tag_IsBuffer as is_buffer;
32
33/// Indicates if the value type is `ArrayBuffer`.
34pub use neon_sys::Neon_Tag_IsArrayBuffer as is_arraybuffer;