pub struct Object(/* private fields */);Implementations§
Source§impl Object
 
impl Object
pub fn new(env: &Env) -> Result<Self>
pub fn get_property<N, T>(&self, name: N) -> Result<T>
pub fn get_named_property<T>(&self, name: &str) -> Result<T>
pub fn get_element<T>(&self, index: u32) -> Result<T>
pub fn has_property<N>(&self, name: N) -> Result<bool>
pub fn has_own_property<N>(&self, name: N) -> Result<bool>
pub fn has_named_property(&self, name: &str) -> Result<bool>
pub fn has_element(&self, index: u32) -> Result<bool>
pub fn set_property<N, T>(&mut self, name: N, value: T) -> Result<()>
pub fn set_named_property<T>(&mut self, name: &str, value: T) -> Result<()>
pub fn set_element<T>(&mut self, index: u32, value: T) -> Result<()>
pub fn delete_property<N>(&self, name: N) -> Result<bool>
pub fn delete_named_property(&self, name: &str) -> Result<bool>
pub fn delete_element(&self, index: u32) -> Result<bool>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Object
impl RefUnwindSafe for Object
impl !Send for Object
impl !Sync for Object
impl Unpin for Object
impl UnwindSafe for Object
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
 
impl<T> BorrowMut<T> for Twhere
    T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
 
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more