pub struct Object<'a>(_);
Implementations
sourceimpl<'a> Object<'a>
impl<'a> Object<'a>
pub fn value(&self) -> Value<'a>
pub fn env(&self) -> Env<'a>
pub fn new(env: Env<'_>) -> Result<Object<'_>>
pub fn properties(&self) -> Result<Array<'a>>
pub fn size(&self) -> Result<usize>
pub fn get(&self, key: impl Into<Value<'a>>) -> Result<Value<'a>>
pub fn set(
&mut self,
key: impl Into<Value<'a>>,
value: impl Into<Value<'a>>
) -> Result<()>
Trait Implementations
sourceimpl<'a> FromNodeAPI<'a> for Object<'a>
impl<'a> FromNodeAPI<'a> for Object<'a>
fn from_node_api(value: Value<'a>) -> Result<Self>
sourceimpl<'a> IntoNodeApi<'a> for Object<'a>
impl<'a> IntoNodeApi<'a> for Object<'a>
fn into_node_api(self, _env: Env<'a>) -> Result<Value<'a>>
Auto Trait Implementations
impl<'a> RefUnwindSafe for Object<'a>
impl<'a> !Send for Object<'a>
impl<'a> !Sync for Object<'a>
impl<'a> Unpin for Object<'a>
impl<'a> UnwindSafe for Object<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more