Struct quickjs_runtime::quickjs_utils::properties::JSPropertyEnumRef
source · [−]pub struct JSPropertyEnumRef { /* private fields */ }
Expand description
this is a wrapper struct for JSPropertyEnum struct in quickjs it used primarily as a result of objects::get_own_property_names()
Implementations
sourceimpl JSPropertyEnumRef
impl JSPropertyEnumRef
pub fn new(
context: *mut JSContext,
property_enum: *mut JSPropertyEnum,
length: u32
) -> Self
sourcepub unsafe fn get_atom_raw(&self, index: u32) -> *mut JSAtom
pub unsafe fn get_atom_raw(&self, index: u32) -> *mut JSAtom
pub fn get_atom(&self, index: u32) -> JSAtomRef
pub fn get_name(&self, index: u32) -> Result<String, JsError>
pub fn is_enumerable(&self, index: u32) -> bool
pub fn len(&self) -> u32
pub fn is_empty(&self) -> bool
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for JSPropertyEnumRef
impl !Send for JSPropertyEnumRef
impl !Sync for JSPropertyEnumRef
impl Unpin for JSPropertyEnumRef
impl UnwindSafe for JSPropertyEnumRef
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