#[repr(transparent)]pub struct JsTransform_TO<'lt, _ErasedPtr>where
_ErasedPtr: __GetPointerKind,{
pub obj: JsTransform_Backend<'lt, _ErasedPtr>,
/* private fields */
}
Expand description
The trait object for JsTransform.
There are extra methods on the obj
field.
Fields§
§obj: JsTransform_Backend<'lt, _ErasedPtr>
Implementations§
Source§impl<'lt, _ErasedPtr> JsTransform_TO<'lt, _ErasedPtr>where
_ErasedPtr: __GetPointerKind,
impl<'lt, _ErasedPtr> JsTransform_TO<'lt, _ErasedPtr>where
_ErasedPtr: __GetPointerKind,
Sourcepub fn from_ptr<_OrigPtr, Unerasability>(
ptr: _OrigPtr,
unerasability: Unerasability,
) -> Selfwhere
_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,
) -> Selfwhere
_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
.
Sourcepub fn from_sabi(obj: JsTransform_Backend<'lt, _ErasedPtr>) -> Self
pub fn from_sabi(obj: JsTransform_Backend<'lt, _ErasedPtr>) -> Self
Constructs this trait object from its underlying implementation.
Sourcepub fn sabi_reborrow<'_sub>(&'_sub self) -> JsTransform_TO<'lt, &'_sub ()>
pub fn sabi_reborrow<'_sub>(&'_sub self) -> JsTransform_TO<'lt, &'_sub ()>
Reborrows this trait object to a reference-based trait object.
Sourcepub fn sabi_reborrow_mut<'_sub>(
&'_sub mut self,
) -> JsTransform_TO<'lt, &'_sub mut ()>
pub fn sabi_reborrow_mut<'_sub>( &'_sub mut self, ) -> JsTransform_TO<'lt, &'_sub mut ()>
Reborrows this trait object to a mutable-reference-based trait object.
Source§impl<'lt> JsTransform_TO<'lt, RBox<()>>
impl<'lt> JsTransform_TO<'lt, RBox<()>>
Sourcepub fn from_value<_Self, Unerasability>(
ptr: _Self,
unerasability: Unerasability,
) -> Selfwhere
_Self: JsTransform_Bounds + 'lt,
JsTransform_Interface: GetRObjectVTable<Unerasability, _Self, RBox<()>, RBox<_Self>>,
pub fn from_value<_Self, Unerasability>(
ptr: _Self,
unerasability: Unerasability,
) -> Selfwhere
_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
.
Source§impl<'lt, '_sub> JsTransform_TO<'lt, RRef<'_sub, ()>>
impl<'lt, '_sub> JsTransform_TO<'lt, RRef<'_sub, ()>>
Sourcepub const fn from_const<_Self, Unerasability>(
ptr: &'_sub _Self,
unerasability: Unerasability,
vtable_for: VTableTO_RO<_Self, RRef<'_sub, _Self>, Unerasability, VTable<(), RRef<'_sub, ()>>>,
) -> Selfwhere
_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, ()>>>,
) -> Selfwhere
_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
.
Source§impl<'lt, _ErasedPtr> JsTransform_TO<'lt, _ErasedPtr>where
_ErasedPtr: __GetPointerKind,
Self: Sized,
impl<'lt, _ErasedPtr> JsTransform_TO<'lt, _ErasedPtr>where
_ErasedPtr: __GetPointerKind,
Self: Sized,
Trait Implementations§
Source§impl<'lt, _ErasedPtr> GetStaticEquivalent_ for JsTransform_TO<'lt, _ErasedPtr>
impl<'lt, _ErasedPtr> GetStaticEquivalent_ for JsTransform_TO<'lt, _ErasedPtr>
type StaticEquivalent = _static_JsTransform_TO<'static, <_ErasedPtr as GetStaticEquivalent_>::StaticEquivalent>
Source§impl<'lt, _ErasedPtr> JsTransform for JsTransform_TO<'lt, _ErasedPtr>
impl<'lt, _ErasedPtr> JsTransform for JsTransform_TO<'lt, _ErasedPtr>
Source§impl<'lt, _ErasedPtr> StableAbi for JsTransform_TO<'lt, _ErasedPtr>
impl<'lt, _ErasedPtr> StableAbi for JsTransform_TO<'lt, _ErasedPtr>
Source§const LAYOUT: &'static TypeLayout
const LAYOUT: &'static TypeLayout
Source§type IsNonZeroType = <RObject<'lt, _ErasedPtr, JsTransform_Interface, VTable<(), _ErasedPtr>> as StableAbi>::IsNonZeroType
type IsNonZeroType = <RObject<'lt, _ErasedPtr, JsTransform_Interface, VTable<(), _ErasedPtr>> as StableAbi>::IsNonZeroType
Source§const ABI_CONSTS: AbiConsts = _
const ABI_CONSTS: AbiConsts = _
const
-equivalents of the associated types.Auto Trait Implementations§
impl<'lt, _ErasedPtr> Freeze for JsTransform_TO<'lt, _ErasedPtr>where
_ErasedPtr: Freeze,
impl<'lt, _ErasedPtr> RefUnwindSafe for JsTransform_TO<'lt, _ErasedPtr>where
_ErasedPtr: RefUnwindSafe,
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§
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
Source§impl<T> GetWithMetadata for T
impl<T> GetWithMetadata for T
Source§type ForSelf = WithMetadata_<T, T>
type ForSelf = WithMetadata_<T, T>
WithMetadata_<Self, Self>
Source§impl<T> SelfOps for Twhere
T: ?Sized,
impl<T> SelfOps for Twhere
T: ?Sized,
Source§const T: PhantomData<fn() -> Self> = PhantomData
const T: PhantomData<fn() -> Self> = PhantomData
Type::T
to pass it in methods with _:VariantPhantom<T>
parameters. Read moreSource§const T_D: PhantomData<Self> = PhantomData
const T_D: PhantomData<Self> = PhantomData
Source§fn assert_ty(self, _other: PhantomData<fn() -> Self>) -> Selfwhere
Self: Sized,
fn assert_ty(self, _other: PhantomData<fn() -> Self>) -> Selfwhere
Self: Sized,
other
is the same type as self
.Source§fn assert_ty_ref(&self, _other: PhantomData<fn() -> Self>) -> &Selfwhere
Self: Sized,
fn assert_ty_ref(&self, _other: PhantomData<fn() -> Self>) -> &Selfwhere
Self: Sized,
other
is the same type as self
.Source§fn assert_ty_mut(&mut self, _other: PhantomData<fn() -> Self>) -> &mut Selfwhere
Self: Sized,
fn assert_ty_mut(&mut self, _other: PhantomData<fn() -> Self>) -> &mut Selfwhere
Self: Sized,
other
is the same type as self
.Source§fn ty_(&self) -> PhantomData<fn() -> Self>
fn ty_(&self) -> PhantomData<fn() -> Self>
Source§fn ty_inv(&self) -> PhantomData<fn(Self) -> Self>
fn ty_inv(&self) -> PhantomData<fn(Self) -> Self>
Source§fn ty_inv_ref(&self) -> PhantomData<Cell<&Self>>
fn ty_inv_ref(&self) -> PhantomData<Cell<&Self>>
Source§fn eq_id(&self, other: &Self) -> bool
fn eq_id(&self, other: &Self) -> bool
Source§fn piped<F, U>(self, f: F) -> U
fn piped<F, U>(self, f: F) -> U
Source§fn piped_ref<'a, F, U>(&'a self, f: F) -> Uwhere
F: FnOnce(&'a Self) -> U,
fn piped_ref<'a, F, U>(&'a self, f: F) -> Uwhere
F: FnOnce(&'a Self) -> U,
piped
except that the function takes &Self
Useful for functions that take &Self
instead of Self
. Read moreSource§fn piped_mut<'a, F, U>(&'a mut self, f: F) -> Uwhere
F: FnOnce(&'a mut Self) -> U,
fn piped_mut<'a, F, U>(&'a mut self, f: F) -> Uwhere
F: FnOnce(&'a mut Self) -> U,
piped
except that the function takes &mut Self
.
Useful for functions that take &mut Self
instead of Self
.Source§fn mutated<F>(self, f: F) -> Self
fn mutated<F>(self, f: F) -> Self
Source§fn observe<F>(self, f: F) -> Self
fn observe<F>(self, f: F) -> Self
Source§fn into_<T>(self, _: PhantomData<fn() -> T>) -> Twhere
Self: Into<T>,
fn into_<T>(self, _: PhantomData<fn() -> T>) -> Twhere
Self: Into<T>,
Source§fn as_ref_<T>(&self) -> &T
fn as_ref_<T>(&self) -> &T
.as_ref_::<_>()
syntax. Read more