Enum sljs::object::Interpreted
source · [−]Variants
Member
An object member; might not exist yet.
Value(JSValue)
A value
Implementations
sourceimpl Interpreted
impl Interpreted
pub const VOID: Interpreted = _
pub const NAN: Interpreted = _
sourcepub fn member(of: JSRef, name: &str) -> Interpreted
pub fn member(of: JSRef, name: &str) -> Interpreted
A convenience wrapper for Interpreted::Member{} construction
sourcepub fn to_value(&self, heap: &Heap) -> JSResult<JSValue>
pub fn to_value(&self, heap: &Heap) -> JSResult<JSValue>
If Interpreted::Value, unwrap;
if Interpreted::Member{of, name}, JSObject::lookup_value
of name
in of
.
pub fn to_ref(&self, heap: &Heap) -> JSResult<JSRef>
pub fn put_value(&self, value: JSValue, heap: &mut Heap) -> JSResult<()>
Trait Implementations
sourceimpl Clone for Interpreted
impl Clone for Interpreted
sourcefn clone(&self) -> Interpreted
fn clone(&self) -> Interpreted
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for Interpreted
impl Debug for Interpreted
sourceimpl<T> From<T> for Interpreted where
JSValue: From<T>,
impl<T> From<T> for Interpreted where
JSValue: From<T>,
sourcefn from(value: T) -> Interpreted
fn from(value: T) -> Interpreted
Converts to this type from the input type.
sourceimpl PartialEq<Interpreted> for Interpreted
impl PartialEq<Interpreted> for Interpreted
sourcefn eq(&self, other: &Interpreted) -> bool
fn eq(&self, other: &Interpreted) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &Interpreted) -> bool
fn ne(&self, other: &Interpreted) -> bool
This method tests for !=
.
impl StructuralPartialEq for Interpreted
Auto Trait Implementations
impl RefUnwindSafe for Interpreted
impl !Send for Interpreted
impl !Sync for Interpreted
impl Unpin for Interpreted
impl UnwindSafe for Interpreted
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more