Struct rquickjs_core::class::Ref

source ·
pub struct Ref<'js, C>(_);
Available on crate feature classes only.

Implementations§

source§

impl<'js, C: ClassDef> Ref<'js, C>

source

pub fn new(class: Class<'js, C>) -> Self

source

pub fn into_inner(self) -> Class<'js, C>

Trait Implementations§

source§

impl<'js, C: ClassDef + Debug> Debug for Ref<'js, C>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl<'js, C: ClassDef> Deref for Ref<'js, C>

§

type Target = C

The resulting type after dereferencing.
source§

fn deref(&self) -> &Self::Target

Dereferences the value.
source§

impl<'js, C: ClassDef> FromJs<'js> for Ref<'js, C>

source§

fn from_js(ctx: Ctx<'js>, value: Value<'js>) -> Result<Self>

source§

impl<'js, C: ClassDef> IntoJs<'js> for Ref<'js, C>

source§

fn into_js(self, ctx: Ctx<'js>) -> Result<Value<'js>>

Auto Trait Implementations§

§

impl<'js, C> RefUnwindSafe for Ref<'js, C>where C: RefUnwindSafe,

§

impl<'js, C> !Send for Ref<'js, C>

§

impl<'js, C> !Sync for Ref<'js, C>

§

impl<'js, C> Unpin for Ref<'js, C>where C: Unpin,

§

impl<'js, C> !UnwindSafe for Ref<'js, C>

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<'js, T> AsProperty<'js, T> for Twhere T: IntoJs<'js>,

source§

fn config( self, ctx: Ctx<'js> ) -> Result<(i32, Value<'js>, Value<'js>, Value<'js>), Error>

Available on crate feature properties only.
Property configuration Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<'js, T> FromInput<'js> for Twhere T: FromJs<'js>,

source§

fn num_args() -> Range<usize>

Get possible number of arguments
source§

fn from_input<'i>(accessor: &mut InputAccessor<'i, 'js>) -> Result<T, Error>

Get it from input
source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<'js, T> IntoInput<'js> for Twhere T: IntoJs<'js>,

source§

fn num_args(&self) -> usize

Get actual number of arguments
source§

fn into_input(self, input: &mut CallInput<'js>) -> Result<(), Error>

Put the value into inputs
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
source§

impl<T> ParallelSend for T