Struct swc_plugin_shared::SwcPlugin_Prefix [−][src]
#[repr(C)]pub struct SwcPlugin_Prefix { pub get_js_ast_version: extern "C" fn() -> RString, pub new_js_transform: extern "C" fn() -> JsTransformBox, // some fields omitted }
Expand description
This is the prefix fields of
SwcPlugin,
accessible through SwcPluginRef
, with .0.prefix()
.
This is automatically generated documentation,by the StableAbi derive macro.
Fields
get_js_ast_version: extern "C" fn() -> RString
new_js_transform: extern "C" fn() -> JsTransformBox
Trait Implementations
type StaticEquivalent = _static_SwcPlugin
type IsNonZeroType = False
type IsNonZeroType = False
Whether this type has a single invalid bit-pattern.
The layout of the type, provided by implementors.
const
-equivalents of the associated types.
Auto Trait Implementations
impl RefUnwindSafe for SwcPlugin_Prefix
impl Send for SwcPlugin_Prefix
impl Sync for SwcPlugin_Prefix
impl Unpin for SwcPlugin_Prefix
impl UnwindSafe for SwcPlugin_Prefix
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.