Struct swc_plugin_shared::JsTransform_TO [−][src]
#[repr(transparent)]pub struct JsTransform_TO<'lt, _ErasedPtr> where
_ErasedPtr: __GetPointerKind, { pub obj: JsTransform_Backend<'lt, _ErasedPtr>, // some fields omitted }
Expand description
The trait object for JsTransform.
There are extra methods on the obj
field.
Fields
obj: JsTransform_Backend<'lt, _ErasedPtr>
Implementations
pub fn from_ptr<_OrigPtr, Unerasability>(
ptr: _OrigPtr,
unerasability: Unerasability
) -> Self where
_OrigPtr: CanTransmuteElement<(), TransmutedPtr = _ErasedPtr> + 'lt,
_OrigPtr::Target: JsTransform_Bounds + Sized + 'lt,
_ErasedPtr: Deref<Target = ()>,
JsTransform_Interface: GetRObjectVTable<Unerasability, _OrigPtr::Target, _ErasedPtr, _OrigPtr>,
pub fn from_ptr<_OrigPtr, Unerasability>(
ptr: _OrigPtr,
unerasability: Unerasability
) -> Self where
_OrigPtr: CanTransmuteElement<(), TransmutedPtr = _ErasedPtr> + 'lt,
_OrigPtr::Target: JsTransform_Bounds + Sized + 'lt,
_ErasedPtr: Deref<Target = ()>,
JsTransform_Interface: GetRObjectVTable<Unerasability, _OrigPtr::Target, _ErasedPtr, _OrigPtr>,
Constructs this trait object from a pointer to a type that implements JsTransform
.
unerasability
describes whether the trait object can be converted back into the original type or not.
Its possible values are TU_Unerasable
and TU_Opaque
.
Constructs this trait object from its underlying implementation.
pub fn sabi_reborrow<'_sub>(&'_sub self) -> JsTransform_TO<'lt, &'_sub ()> where
_ErasedPtr: Deref<Target = ()>,
pub fn sabi_reborrow<'_sub>(&'_sub self) -> JsTransform_TO<'lt, &'_sub ()> where
_ErasedPtr: Deref<Target = ()>,
Reborrows this trait object to a reference-based trait object.
pub fn sabi_reborrow_mut<'_sub>(
&'_sub mut self
) -> JsTransform_TO<'lt, &'_sub mut ()> where
_ErasedPtr: DerefMut<Target = ()>,
pub fn sabi_reborrow_mut<'_sub>(
&'_sub mut self
) -> JsTransform_TO<'lt, &'_sub mut ()> where
_ErasedPtr: DerefMut<Target = ()>,
Reborrows this trait object to a mutable-reference-based trait object.
pub fn from_value<_Self, Unerasability>(
ptr: _Self,
unerasability: Unerasability
) -> Self where
_Self: JsTransform_Bounds + 'lt,
JsTransform_Interface: GetRObjectVTable<Unerasability, _Self, RBox<()>, RBox<_Self>>,
pub fn from_value<_Self, Unerasability>(
ptr: _Self,
unerasability: Unerasability
) -> Self where
_Self: JsTransform_Bounds + 'lt,
JsTransform_Interface: GetRObjectVTable<Unerasability, _Self, RBox<()>, RBox<_Self>>,
Constructs this trait from a type that implements JsTransform
.
unerasability
describes whether the trait object can be converted back into the original type or not.
Its possible values are TU_Unerasable
and TU_Opaque
.
pub const fn from_const<_Self, Unerasability>(
ptr: &'_sub _Self,
unerasability: Unerasability,
vtable_for: VTableTO_RO<_Self, RRef<'_sub, _Self>, Unerasability, VTable<(), RRef<'_sub, ()>>>
) -> Self where
_Self: 'lt,
pub const fn from_const<_Self, Unerasability>(
ptr: &'_sub _Self,
unerasability: Unerasability,
vtable_for: VTableTO_RO<_Self, RRef<'_sub, _Self>, Unerasability, VTable<(), RRef<'_sub, ()>>>
) -> Self where
_Self: 'lt,
Constructs this trait from a constant of a type that implements JsTransform
.
You can construct the vtable_for
parameter with JsTransform_MV::VTABLE
.
unerasability
describes whether the trait object can be converted back into the original type or not.
Its possible values are TU_Unerasable
and TU_Opaque
.
impl<'lt, _ErasedPtr> JsTransform_TO<'lt, _ErasedPtr> where
_ErasedPtr: __GetPointerKind,
Self: Sized,
impl<'lt, _ErasedPtr> JsTransform_TO<'lt, _ErasedPtr> where
_ErasedPtr: __GetPointerKind,
Self: Sized,
pub fn process(
&mut self,
param_0: RStr<'_>,
param_1: RStr<'_>
) -> RResult<RString, RString> where
_ErasedPtr: __GetPointerKind + __DerefMutTrait<Target = ()>,
pub fn process(
&mut self,
param_0: RStr<'_>,
param_1: RStr<'_>
) -> RResult<RString, RString> where
_ErasedPtr: __GetPointerKind + __DerefMutTrait<Target = ()>,
This is the inherent equivalent of the trait method of the same name
Trait Implementations
impl<'lt, _ErasedPtr> GetStaticEquivalent_ for JsTransform_TO<'lt, _ErasedPtr> where
_ErasedPtr: __GetPointerKind,
_ErasedPtr: __StableAbi,
JsTransform_Backend<'lt, _ErasedPtr>: StableAbi,
impl<'lt, _ErasedPtr> GetStaticEquivalent_ for JsTransform_TO<'lt, _ErasedPtr> where
_ErasedPtr: __GetPointerKind,
_ErasedPtr: __StableAbi,
JsTransform_Backend<'lt, _ErasedPtr>: StableAbi,
type StaticEquivalent = _static_JsTransform_TO<'static, __GetStaticEquivalent<_ErasedPtr>>
impl<'lt, _ErasedPtr> JsTransform for JsTransform_TO<'lt, _ErasedPtr> where
Self: Sized,
_ErasedPtr: __GetPointerKind + __DerefMutTrait<Target = ()>,
impl<'lt, _ErasedPtr> JsTransform for JsTransform_TO<'lt, _ErasedPtr> where
Self: Sized,
_ErasedPtr: __GetPointerKind + __DerefMutTrait<Target = ()>,
impl<'lt, _ErasedPtr> StableAbi for JsTransform_TO<'lt, _ErasedPtr> where
_ErasedPtr: __GetPointerKind,
_ErasedPtr: __StableAbi,
JsTransform_Backend<'lt, _ErasedPtr>: StableAbi,
impl<'lt, _ErasedPtr> StableAbi for JsTransform_TO<'lt, _ErasedPtr> where
_ErasedPtr: __GetPointerKind,
_ErasedPtr: __StableAbi,
JsTransform_Backend<'lt, _ErasedPtr>: StableAbi,
type IsNonZeroType = <JsTransform_Backend<'lt, _ErasedPtr> as __StableAbi>::IsNonZeroType
type IsNonZeroType = <JsTransform_Backend<'lt, _ErasedPtr> as __StableAbi>::IsNonZeroType
Whether this type has a single invalid bit-pattern. Read more
The layout of the type provided by implementors.
const
-equivalents of the associated types.
Auto Trait Implementations
impl<'lt, _ErasedPtr> !RefUnwindSafe for JsTransform_TO<'lt, _ErasedPtr>
impl<'lt, _ErasedPtr> !Send for JsTransform_TO<'lt, _ErasedPtr>
impl<'lt, _ErasedPtr> !Sync for JsTransform_TO<'lt, _ErasedPtr>
impl<'lt, _ErasedPtr> Unpin for JsTransform_TO<'lt, _ErasedPtr> where
_ErasedPtr: Unpin,
impl<'lt, _ErasedPtr> UnwindSafe for JsTransform_TO<'lt, _ErasedPtr> where
_ErasedPtr: UnwindSafe,
Blanket Implementations
Mutably borrows from an owned value. Read more
type ForSelf = WithMetadata_<T, T>
type ForSelf = WithMetadata_<T, T>
This is always WithMetadata_<Self, Self>
impl<T> SelfOps for T where
T: ?Sized,
impl<T> SelfOps for T where
T: ?Sized,
const T: PhantomData<fn() -> Self>
const T: PhantomData<fn() -> Self>
Represents Self by using a VariantPhantomType::T
to pass it in methods with _:VariantPhantom<T>
parameters. Read more
const T_D: PhantomData<Self>
const T_D: PhantomData<Self>
Represents Self by using a VariantDropPhantom
fn assert_ty(self, _other: PhantomData<fn() -> Self>) -> Self
fn assert_ty(self, _other: PhantomData<fn() -> Self>) -> Self
Asserts that other
is the same type as self
.
fn assert_ty_ref(&self, _other: PhantomData<fn() -> Self>) -> &Self
fn assert_ty_ref(&self, _other: PhantomData<fn() -> Self>) -> &Self
Asserts that other
is the same type as self
.
fn assert_ty_mut(&mut self, _other: PhantomData<fn() -> Self>) -> &mut Self
fn assert_ty_mut(&mut self, _other: PhantomData<fn() -> Self>) -> &mut Self
Asserts that other
is the same type as self
.
fn ty_(&self) -> PhantomData<fn() -> Self>
fn ty_(&self) -> PhantomData<fn() -> Self>
Equivalent to SelfOps::T,as a method. Read more
fn ty_d(&self) -> PhantomData<Self>
fn ty_d(&self) -> PhantomData<Self>
Equivalent to [Self::ty_],for specialized cases. Read more
fn ty_inv(&self) -> PhantomData<fn(Self) -> Self>
fn ty_inv(&self) -> PhantomData<fn(Self) -> Self>
Equivalent to [Self::ty_] with an invariant type.
fn ty_inv_ref(&self) -> PhantomData<Cell<&Self>>
fn ty_inv_ref(&self) -> PhantomData<Cell<&Self>>
Equivalent to [Self::ty_] with an invariant lifetime.
Identity comparison to another value of the same type. Read more
Emulates the pipeline operator,allowing method syntax in more places. Read more
The same as piped
except that the function takes &Self
Useful for functions that take &Self
instead of Self
. Read more
The same as piped
except that the function takes &mut Self
.
Useful for functions that take &mut Self
instead of Self
. Read more
Mutates self using a closure taking self by mutable reference, passing it along the method chain. Read more
Observes the value of self passing it along unmodified. Useful in a long method chain. Read more
fn into_<T>(self, PhantomData<fn() -> T>) -> T where
Self: Into<T>,
fn into_<T>(self, PhantomData<fn() -> T>) -> T where
Self: Into<T>,
Performs a conversion using Into. Read more
Performs a reference to reference conversion using AsRef,
using the turbofish .as_ref_::<_>()
syntax. Read more
Performs a mutable reference to mutable reference conversion using AsMut,
using the turbofish .as_mut_::<_>()
syntax. Read more
unsafe fn transmute_element<T>(self) -> Self::TransmutedPtr where
Self: CanTransmuteElement<T>,
Self::Target: Sized,
unsafe fn transmute_element<T>(self) -> Self::TransmutedPtr where
Self: CanTransmuteElement<T>,
Self::Target: Sized,
Transmutes the element type of this pointer.. Read more
impl<T> TypeIdentity for T where
T: ?Sized,
impl<T> TypeIdentity for T where
T: ?Sized,
fn into_type_val(self) -> Self::Type where
Self::Type: Sized,
fn into_type_val(self) -> Self::Type where
Self::Type: Sized,
Converts a value back to the original type.
fn into_type_ref(&self) -> &Self::Type
fn into_type_ref(&self) -> &Self::Type
Converts a reference back to the original type.
fn into_type_mut(&mut self) -> &mut Self::Type
fn into_type_mut(&mut self) -> &mut Self::Type
Converts a mutable reference back to the original type.
fn into_type_box(self: Box<Self, Global>) -> Box<Self::Type, Global>
fn into_type_box(self: Box<Self, Global>) -> Box<Self::Type, Global>
Converts a box back to the original type.
fn into_type_arc(this: Arc<Self>) -> Arc<Self::Type>
fn into_type_arc(this: Arc<Self>) -> Arc<Self::Type>
Converts an Arc back to the original type.
fn into_type_rc(this: Rc<Self>) -> Rc<Self::Type>
fn into_type_rc(this: Rc<Self>) -> Rc<Self::Type>
Converts an Rc back to the original type.
fn from_type_val(this: Self::Type) -> Self where
Self::Type: Sized,
fn from_type_val(this: Self::Type) -> Self where
Self::Type: Sized,
Converts a value back to the original type.
fn from_type_ref(this: &Self::Type) -> &Self
fn from_type_ref(this: &Self::Type) -> &Self
Converts a reference back to the original type.
fn from_type_mut(this: &mut Self::Type) -> &mut Self
fn from_type_mut(this: &mut Self::Type) -> &mut Self
Converts a mutable reference back to the original type.
fn from_type_box(this: Box<Self::Type, Global>) -> Box<Self, Global>
fn from_type_box(this: Box<Self::Type, Global>) -> Box<Self, Global>
Converts a box back to the original type.
fn from_type_arc(this: Arc<Self::Type>) -> Arc<Self>
fn from_type_arc(this: Arc<Self::Type>) -> Arc<Self>
Converts an Arc back to the original type.
fn from_type_rc(this: Rc<Self::Type>) -> Rc<Self>
fn from_type_rc(this: Rc<Self::Type>) -> Rc<Self>
Converts an Rc back to the original type.