Skip to main content

BasePrimordials

Struct BasePrimordials 

Source
pub struct BasePrimordials<'js> {
Show 27 fields pub constructor_map: Constructor<'js>, pub constructor_set: Constructor<'js>, pub constructor_date: Constructor<'js>, pub constructor_error: Constructor<'js>, pub constructor_type_error: Constructor<'js>, pub constructor_range_error: Constructor<'js>, pub constructor_regexp: Constructor<'js>, pub constructor_uint8array: Constructor<'js>, pub constructor_array_buffer: Constructor<'js>, pub constructor_proxy: Constructor<'js>, pub constructor_object: Constructor<'js>, pub constructor_bool: Constructor<'js>, pub constructor_number: Constructor<'js>, pub constructor_string: Constructor<'js>, pub prototype_object: Object<'js>, pub prototype_date: Object<'js>, pub prototype_regexp: Object<'js>, pub prototype_set: Object<'js>, pub prototype_map: Object<'js>, pub prototype_error: Object<'js>, pub function_array_from: Function<'js>, pub function_array_buffer_is_view: Function<'js>, pub function_get_own_property_descriptor: Function<'js>, pub function_reflect_own_keys: Function<'js>, pub function_parse_int: Function<'js>, pub function_parse_float: Function<'js>, pub prototype_iterator: Object<'js>,
}

Fields§

§constructor_map: Constructor<'js>§constructor_set: Constructor<'js>§constructor_date: Constructor<'js>§constructor_error: Constructor<'js>§constructor_type_error: Constructor<'js>§constructor_range_error: Constructor<'js>§constructor_regexp: Constructor<'js>§constructor_uint8array: Constructor<'js>§constructor_array_buffer: Constructor<'js>§constructor_proxy: Constructor<'js>§constructor_object: Constructor<'js>§constructor_bool: Constructor<'js>§constructor_number: Constructor<'js>§constructor_string: Constructor<'js>§prototype_object: Object<'js>§prototype_date: Object<'js>§prototype_regexp: Object<'js>§prototype_set: Object<'js>§prototype_map: Object<'js>§prototype_error: Object<'js>§function_array_from: Function<'js>§function_array_buffer_is_view: Function<'js>§function_get_own_property_descriptor: Function<'js>§function_reflect_own_keys: Function<'js>§function_parse_int: Function<'js>§function_parse_float: Function<'js>§prototype_iterator: Object<'js>

Trait Implementations§

Source§

impl<'js> JsLifetime<'js> for BasePrimordials<'js>

Source§

type Changed<'to> = BasePrimordials<'to>

The target which has the same type as a Self but with another lifetime 't
Source§

impl<'js> Primordial<'js> for BasePrimordials<'js>

Source§

fn new(ctx: &Ctx<'js>) -> Result<Self>

Source§

fn get<'a>(ctx: &'a Ctx<'js>) -> Result<UserDataGuard<'a, Self>>

Source§

fn init<'a>(ctx: &'a Ctx<'js>) -> Result<()>

Auto Trait Implementations§

§

impl<'js> !Send for BasePrimordials<'js>

§

impl<'js> !Sync for BasePrimordials<'js>

§

impl<'js> !UnwindSafe for BasePrimordials<'js>

§

impl<'js> Freeze for BasePrimordials<'js>

§

impl<'js> RefUnwindSafe for BasePrimordials<'js>

§

impl<'js> Unpin for BasePrimordials<'js>

§

impl<'js> UnsafeUnpin for BasePrimordials<'js>

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where 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<T> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
Source§

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

Source§

type Error = !

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

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

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

Source§

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> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more