Struct JsTransform_TO

Source
#[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,

Source

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.

Source

pub fn from_sabi(obj: JsTransform_Backend<'lt, _ErasedPtr>) -> Self

Constructs this trait object from its underlying implementation.

Source

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.

Source

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.

Source§

impl<'lt> JsTransform_TO<'lt, RBox<()>>

Source

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.

Source§

impl<'lt, '_sub> JsTransform_TO<'lt, RRef<'_sub, ()>>

Source

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.

Source§

impl<'lt, _ErasedPtr> JsTransform_TO<'lt, _ErasedPtr>
where _ErasedPtr: __GetPointerKind, Self: Sized,

Source

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§

Source§

impl<'lt, _ErasedPtr> GetStaticEquivalent_ for JsTransform_TO<'lt, _ErasedPtr>
where _ErasedPtr: __GetPointerKind + __StableAbi, JsTransform_Backend<'lt, _ErasedPtr>: StableAbi,

Source§

type StaticEquivalent = _static_JsTransform_TO<'static, <_ErasedPtr as GetStaticEquivalent_>::StaticEquivalent>

Source§

impl<'lt, _ErasedPtr> JsTransform for JsTransform_TO<'lt, _ErasedPtr>
where Self: Sized, _ErasedPtr: __GetPointerKind + __DerefMutTrait<Target = ()>,

Source§

fn process( &mut self, param_0: RStr<'_>, param_1: RStr<'_>, ) -> RResult<RString, RString>

Should return ast as json string,
Source§

impl<'lt, _ErasedPtr> StableAbi for JsTransform_TO<'lt, _ErasedPtr>
where _ErasedPtr: __GetPointerKind + __StableAbi, JsTransform_Backend<'lt, _ErasedPtr>: StableAbi,

Source§

const LAYOUT: &'static TypeLayout

The layout of the type provided by implementors.
Source§

type IsNonZeroType = <RObject<'lt, _ErasedPtr, JsTransform_Interface, VTable<(), _ErasedPtr>> as StableAbi>::IsNonZeroType

Whether this type has a single invalid bit-pattern. Read more
Source§

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

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> GetWithMetadata for T

Source§

type ForSelf = WithMetadata_<T, T>

This is always WithMetadata_<Self, Self>
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> SelfOps for T
where T: ?Sized,

Source§

const T: PhantomData<fn() -> Self> = PhantomData

Represents Self by using a VariantPhantom, using the syntax Type::T to pass it in methods with _:VariantPhantom<T> parameters. Read more
Source§

const T_D: PhantomData<Self> = PhantomData

Represents Self by using a VariantDropPhantom,for specialized cases. Read more
Source§

fn assert_ty(self, _other: PhantomData<fn() -> Self>) -> Self
where Self: Sized,

Asserts that other is the same type as self.
Source§

fn assert_ty_ref(&self, _other: PhantomData<fn() -> Self>) -> &Self
where Self: Sized,

Asserts that other is the same type as self.
Source§

fn assert_ty_mut(&mut self, _other: PhantomData<fn() -> Self>) -> &mut Self
where Self: Sized,

Asserts that other is the same type as self.
Source§

fn ty_(&self) -> PhantomData<fn() -> Self>

Equivalent to SelfOps::T,as a method. Read more
Source§

fn ty_d(&self) -> PhantomData<Self>

Equivalent to Self::ty_,for specialized cases. Read more
Source§

fn ty_inv(&self) -> PhantomData<fn(Self) -> Self>

Equivalent to Self::ty_ with an invariant type.
Source§

fn ty_inv_ref(&self) -> PhantomData<Cell<&Self>>

Equivalent to Self::ty_ with an invariant lifetime.
Source§

fn eq_id(&self, other: &Self) -> bool

Identity comparison to another value of the same type. Read more
Source§

fn piped<F, U>(self, f: F) -> U
where F: FnOnce(Self) -> U, Self: Sized,

Emulates the pipeline operator,allowing method syntax in more places. Read more
Source§

fn piped_ref<'a, F, U>(&'a self, f: F) -> U
where F: FnOnce(&'a Self) -> U,

The same as piped except that the function takes &Self Useful for functions that take &Self instead of Self. Read more
Source§

fn piped_mut<'a, F, U>(&'a mut self, f: F) -> U
where F: FnOnce(&'a mut Self) -> U,

The same as 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
where F: FnOnce(&mut Self), Self: Sized,

Mutates self using a closure taking self by mutable reference, passing it along the method chain. Read more
Source§

fn observe<F>(self, f: F) -> Self
where F: FnOnce(&Self), Self: Sized,

Observes the value of self passing it along unmodified. Useful in a long method chain. Read more
Source§

fn into_<T>(self, _: PhantomData<fn() -> T>) -> T
where Self: Into<T>,

Performs a conversion using Into. Read more
Source§

fn as_ref_<T>(&self) -> &T
where Self: AsRef<T>, T: ?Sized,

Performs a reference to reference conversion using AsRef, using the turbofish .as_ref_::<_>() syntax. Read more
Source§

fn as_mut_<T>(&mut self) -> &mut T
where Self: AsMut<T>, T: ?Sized,

Performs a mutable reference to mutable reference conversion using AsMut, using the turbofish .as_mut_::<_>() syntax. Read more
Source§

fn drop_(self)
where Self: Sized,

Drops self using method notation. Alternative to std::mem::drop. Read more
Source§

impl<This> TransmuteElement for This
where This: ?Sized,

Source§

unsafe fn transmute_element<T>(self) -> Self::TransmutedPtr
where Self: CanTransmuteElement<T>, Self::Target: Sized,

Transmutes the element type of this pointer.. Read more
Source§

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

Source§

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 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, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The error type returned when the conversion fails.
Source§

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

Performs the conversion
Source§

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

Source§

type Type = T

The same type as Self. Read more
Source§

fn into_type_val(self) -> Self::Type
where Self: Sized, Self::Type: Sized,

Converts a value back to the original type.
Source§

fn into_type_ref(&self) -> &Self::Type

Converts a reference back to the original type.
Source§

fn into_type_mut(&mut self) -> &mut Self::Type

Converts a mutable reference back to the original type.
Source§

fn into_type_box(self: Box<Self>) -> Box<Self::Type>

Converts a box back to the original type.
Source§

fn into_type_arc(this: Arc<Self>) -> Arc<Self::Type>

Converts an Arc back to the original type.
Source§

fn into_type_rc(this: Rc<Self>) -> Rc<Self::Type>

Converts an Rc back to the original type.
Source§

fn from_type_val(this: Self::Type) -> Self
where Self: Sized, Self::Type: Sized,

Converts a value back to the original type.
Source§

fn from_type_ref(this: &Self::Type) -> &Self

Converts a reference back to the original type.
Source§

fn from_type_mut(this: &mut Self::Type) -> &mut Self

Converts a mutable reference back to the original type.
Source§

fn from_type_box(this: Box<Self::Type>) -> Box<Self>

Converts a box back to the original type.
Source§

fn from_type_arc(this: Arc<Self::Type>) -> Arc<Self>

Converts an Arc back to the original type.
Source§

fn from_type_rc(this: Rc<Self::Type>) -> Rc<Self>

Converts an Rc back to the original type.
Source§

impl<_Self> JsTransform_Bounds for _Self
where _Self: JsTransform,