pub struct ObjectData { /* private fields */ }
Expand description
Defines the kind of an object and its internal methods
Implementations§
Source§impl ObjectData
impl ObjectData
Sourcepub fn array() -> Self
pub fn array() -> Self
Create the Array
object data and reference its exclusive internal methods
Sourcepub fn array_iterator(array_iterator: ArrayIterator) -> Self
pub fn array_iterator(array_iterator: ArrayIterator) -> Self
Create the ArrayIterator
object data
Sourcepub fn map(map: OrderedMap<JsValue>) -> Self
pub fn map(map: OrderedMap<JsValue>) -> Self
Create the Map
object data
Sourcepub fn map_iterator(map_iterator: MapIterator) -> Self
pub fn map_iterator(map_iterator: MapIterator) -> Self
Create the MapIterator
object data
Sourcepub fn reg_exp_string_iterator(
reg_exp_string_iterator: RegExpStringIterator,
) -> Self
pub fn reg_exp_string_iterator( reg_exp_string_iterator: RegExpStringIterator, ) -> Self
Create the RegExpStringIterator
object data
Sourcepub fn for_in_iterator(for_in_iterator: ForInIterator) -> Self
pub fn for_in_iterator(for_in_iterator: ForInIterator) -> Self
Create the ForInIterator
object data
Sourcepub fn set(set: OrderedSet<JsValue>) -> Self
pub fn set(set: OrderedSet<JsValue>) -> Self
Create the Set
object data
Sourcepub fn set_iterator(set_iterator: SetIterator) -> Self
pub fn set_iterator(set_iterator: SetIterator) -> Self
Create the SetIterator
object data
Sourcepub fn string(string: JsString) -> Self
pub fn string(string: JsString) -> Self
Create the String
object data and reference its exclusive internal methods
Sourcepub fn string_iterator(string_iterator: StringIterator) -> Self
pub fn string_iterator(string_iterator: StringIterator) -> Self
Create the StringIterator
object data
Sourcepub fn native_object(native_object: Box<dyn NativeObject>) -> Self
pub fn native_object(native_object: Box<dyn NativeObject>) -> Self
Create the NativeObject
object data
Trait Implementations§
Source§impl Debug for ObjectData
impl Debug for ObjectData
Source§impl Drop for ObjectData
impl Drop for ObjectData
Source§impl Trace for ObjectData
impl Trace for ObjectData
Source§fn finalize_glue(&self)
fn finalize_glue(&self)
Runs Finalize::finalize() on this object and all
contained subobjects
Auto Trait Implementations§
impl !Freeze for ObjectData
impl !RefUnwindSafe for ObjectData
impl !Send for ObjectData
impl !Sync for ObjectData
impl Unpin for ObjectData
impl !UnwindSafe for ObjectData
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