☰
napi
2.15.1
Object
Aliased type
Methods
get
keys
set
Trait Implementations
TypeName
In napi::bindgen_prelude
?
Type Alias
napi
::
bindgen_prelude
::
Object
source
·
[
−
]
pub type Object =
JsObject
;
Aliased Type
§
struct Object(/* private fields */);
Implementations
§
source
§
impl
Object
source
pub fn
get
<K:
AsRef
<
str
>, V:
FromNapiValue
>( &self, field: K ) ->
Result
<
Option
<V>>
source
pub fn
set
<K:
AsRef
<
str
>, V:
ToNapiValue
>( &mut self, field: K, val: V ) ->
Result
<
()
>
source
pub fn
keys
(obj: &
Object
) ->
Result
<
Vec
<
String
>>
Trait Implementations
§
source
§
impl
TypeName
for
Object
source
§
fn
type_name
() -> &'static
str
source
§
fn
value_type
() ->
ValueType