pub enum JavascriptThis {
Lexical(JavascriptValue),
Dynamic(JavascriptValue),
}Expand description
Receiver selected for a call.
Variants§
Lexical(JavascriptValue)
Arrow functions retain their lexical receiver.
Dynamic(JavascriptValue)
Ordinary calls receive the call-site receiver.
Trait Implementations§
Source§impl Clone for JavascriptThis
impl Clone for JavascriptThis
Source§fn clone(&self) -> JavascriptThis
fn clone(&self) -> JavascriptThis
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for JavascriptThis
impl Debug for JavascriptThis
Source§impl PartialEq for JavascriptThis
impl PartialEq for JavascriptThis
impl StructuralPartialEq for JavascriptThis
Auto Trait Implementations§
impl Freeze for JavascriptThis
impl RefUnwindSafe for JavascriptThis
impl Send for JavascriptThis
impl Sync for JavascriptThis
impl Unpin for JavascriptThis
impl UnsafeUnpin for JavascriptThis
impl UnwindSafe for JavascriptThis
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