#[repr(transparent)]pub struct SwcPluginRef(pub PrefixRef<SwcPlugin_Prefix>);
Expand description
This is the pointer to the prefix of SwcPlugin.
This is automatically generated documentation,by the StableAbi derive macro.
§Creating a compiletime-constant
You can look at the docs in abi_stable::docs::prefix_types
to see how you
can construct and use this and similar types.
More specifically in the
“constructing a module” example
or the
“Constructing a vtable” example
Tuple Fields§
§0: PrefixRef<SwcPlugin_Prefix>
Implementations§
Source§impl SwcPluginRef
impl SwcPluginRef
Sourcepub fn get_js_ast_version(&self) -> extern "C" fn() -> RString
pub fn get_js_ast_version(&self) -> extern "C" fn() -> RString
Accessor method for the SwcPlugin::get_js_ast_version
field.This is for a field which always exists.
Sourcepub fn new_js_transform(&self) -> extern "C" fn() -> JsTransformBox
pub fn new_js_transform(&self) -> extern "C" fn() -> JsTransformBox
Accessor method for the SwcPlugin::new_js_transform
field.This is for a field which always exists.
Source§impl SwcPluginRef
impl SwcPluginRef
Sourcepub fn _prefix_type_layout(self) -> &'static __PTStructLayout
pub fn _prefix_type_layout(self) -> &'static __PTStructLayout
Accessor to get the layout of the type,used for error messages.
Trait Implementations§
Source§impl Clone for SwcPluginRef
impl Clone for SwcPluginRef
Source§impl GetStaticEquivalent_ for SwcPluginRefwhere
SwcPlugin: PrefixTypeTrait,
impl GetStaticEquivalent_ for SwcPluginRefwhere
SwcPlugin: PrefixTypeTrait,
type StaticEquivalent = PrefixRef<_static_SwcPlugin>
Source§impl ImmutableRef for SwcPluginRef
impl ImmutableRef for SwcPluginRef
Source§type Target = WithMetadata_<SwcPlugin_Prefix, SwcPlugin_Prefix>
type Target = WithMetadata_<SwcPlugin_Prefix, SwcPlugin_Prefix>
The referent of the pointer, what it points to.
Source§const TARGET: ImmutableRefTarget<Self, Self::Target> = _
const TARGET: ImmutableRefTarget<Self, Self::Target> = _
A marker type that can be used as a proof that the
T
type parameter of
ImmutableRefTarget<T, U>
implements ImmutableRef<Target = U>
.Source§fn to_nonnull(self) -> NonNull<Self::Target>
fn to_nonnull(self) -> NonNull<Self::Target>
Converts this pointer to a
NonNull
.Source§unsafe fn from_nonnull(from: NonNull<Self::Target>) -> Self
unsafe fn from_nonnull(from: NonNull<Self::Target>) -> Self
Constructs this pointer from a
NonNull
. Read moreSource§fn to_raw_ptr(self) -> *const Self::Target
fn to_raw_ptr(self) -> *const Self::Target
Converts this pointer to a raw pointer.
Source§impl PrefixRefTrait for SwcPluginRef
impl PrefixRefTrait for SwcPluginRef
Source§type PrefixFields = SwcPlugin_Prefix
type PrefixFields = SwcPlugin_Prefix
A struct that contains all the fields of some other struct
up to the field annotated with
#[sabi(last_prefix_field)]
inclusive. Read moreSource§const PREFIX_FIELDS: PointsToPrefixFields<Self, Self::PrefixFields> = _
const PREFIX_FIELDS: PointsToPrefixFields<Self, Self::PrefixFields> = _
A type used to prove that the
This
type parameter in
PointsToPrefixFields<This, PF>
implements
PrefixRefTrait<PrefixFields = PF>
.Source§fn from_prefix_ref(this: PrefixRef<Self::PrefixFields>) -> Self
fn from_prefix_ref(this: PrefixRef<Self::PrefixFields>) -> Self
Converts a
PrefixRef
to Self
Source§fn to_prefix_ref(self) -> PrefixRef<Self::PrefixFields>
fn to_prefix_ref(self) -> PrefixRef<Self::PrefixFields>
Converts
Self
to a PrefixRef
Source§impl RootModule for SwcPluginRef
impl RootModule for SwcPluginRef
Source§const BASE_NAME: &'static str = "swc_plugin"
const BASE_NAME: &'static str = "swc_plugin"
The name of the dynamic library,which is the same on all platforms.
This is generally the name of the
implementation crate
.Source§const VERSION_STRINGS: VersionStrings
const VERSION_STRINGS: VersionStrings
The version number of the library that this is a root module of. Read more
Source§fn root_module_statics() -> &'static RootModuleStatics<SwcPluginRef>
fn root_module_statics() -> &'static RootModuleStatics<SwcPluginRef>
Gets the statics for Self. Read more
Source§const CONSTANTS: RootModuleConsts<Self> = _
const CONSTANTS: RootModuleConsts<Self> = _
All the constants of this trait and supertraits. Read more
Source§const CONSTANTS_NO_ABI_INFO: RootModuleConsts<Self> = _
const CONSTANTS_NO_ABI_INFO: RootModuleConsts<Self> = _
Like
Self::CONSTANTS
,
except without including the type layout constant for the root module.Source§fn get_module() -> Option<Self>
fn get_module() -> Option<Self>
Gets the root module,returning None if the module is not yet loaded.
Source§fn get_raw_library() -> Option<&'static RawLibrary>
fn get_raw_library() -> Option<&'static RawLibrary>
Gets the RawLibrary of the module,
returning None if the dynamic library failed to load
(it doesn’t exist or layout checking failed). Read more
Source§fn get_library_path(directory: &Path) -> PathBuf
fn get_library_path(directory: &Path) -> PathBuf
Returns the path the library would be loaded from,given a directory(folder).
Source§fn load_module_with<F, E>(f: F) -> Result<Self, E>
fn load_module_with<F, E>(f: F) -> Result<Self, E>
Loads the root module,with a closure which either
returns the root module or an error. Read more
Source§fn load_from(where_: LibraryPath<'_>) -> Result<Self, LibraryError>
fn load_from(where_: LibraryPath<'_>) -> Result<Self, LibraryError>
Loads this module from the path specified by
where_
,
first loading the dynamic library if it wasn’t already loaded. Read moreSource§fn load_from_directory(where_: &Path) -> Result<Self, LibraryError>
fn load_from_directory(where_: &Path) -> Result<Self, LibraryError>
Loads this module from the directory specified by
where_
,
first loading the dynamic library if it wasn’t already loaded. Read moreSource§fn load_from_file(path_: &Path) -> Result<Self, LibraryError>
fn load_from_file(path_: &Path) -> Result<Self, LibraryError>
Loads this module from the file at
path_
,
first loading the dynamic library if it wasn’t already loaded. Read moreSource§fn initialization(self) -> Result<Self, LibraryError>
fn initialization(self) -> Result<Self, LibraryError>
Defines behavior that happens once the module is loaded. Read more
Source§impl StableAbi for SwcPluginRefwhere
SwcPlugin: PrefixTypeTrait,
impl StableAbi for SwcPluginRefwhere
SwcPlugin: PrefixTypeTrait,
Source§const LAYOUT: &'static TypeLayout = <__sabi_re::PrefixRef<SwcPlugin_Prefix> as __sabi_re::StableAbi>::LAYOUT
const LAYOUT: &'static TypeLayout = <__sabi_re::PrefixRef<SwcPlugin_Prefix> as __sabi_re::StableAbi>::LAYOUT
The layout of the type provided by implementors.
Source§type IsNonZeroType = True
type IsNonZeroType = True
Whether this type has a single invalid bit-pattern. Read more
Source§const ABI_CONSTS: AbiConsts = _
const ABI_CONSTS: AbiConsts = _
const
-equivalents of the associated types.impl Copy for SwcPluginRef
Auto Trait Implementations§
impl Freeze for SwcPluginRef
impl RefUnwindSafe for SwcPluginRef
impl Send for SwcPluginRef
impl Sync for SwcPluginRef
impl Unpin for SwcPluginRef
impl UnwindSafe for SwcPluginRef
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
Mutably borrows from an owned value. Read more
Source§impl<'a, T> BorrowOwned<'a> for Twhere
T: 'a + Clone,
impl<'a, T> BorrowOwned<'a> for Twhere
T: 'a + Clone,
fn r_borrow( this: &'a <T as BorrowOwned<'a>>::ROwned, ) -> <T as BorrowOwned<'a>>::RBorrowed
fn r_to_owned( this: <T as BorrowOwned<'a>>::RBorrowed, ) -> <T as BorrowOwned<'a>>::ROwned
fn deref_borrowed(this: &<T as BorrowOwned<'a>>::RBorrowed) -> &T
fn deref_owned(this: &<T as BorrowOwned<'a>>::ROwned) -> &T
fn from_cow_borrow(this: &'a T) -> <T as BorrowOwned<'a>>::RBorrowed
fn from_cow_owned(this: <T as ToOwned>::Owned) -> <T as BorrowOwned<'a>>::ROwned
fn into_cow_borrow(this: <T as BorrowOwned<'a>>::RBorrowed) -> &'a T
fn into_cow_owned(this: <T as BorrowOwned<'a>>::ROwned) -> <T as ToOwned>::Owned
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> GetWithMetadata for T
impl<T> GetWithMetadata for T
Source§type ForSelf = WithMetadata_<T, T>
type ForSelf = WithMetadata_<T, T>
This is always
WithMetadata_<Self, Self>
Source§impl<M> IntoRootModuleResult for Mwhere
M: RootModule,
impl<M> IntoRootModuleResult for Mwhere
M: RootModule,
Source§fn into_root_module_result(self) -> Result<M, RootModuleError>
fn into_root_module_result(self) -> Result<M, RootModuleError>
Performs the conversion
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
Represents Self by using a VariantPhantom,
using the syntax
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
Represents Self by using a VariantDropPhantom,for specialized cases. Read more
Source§fn assert_ty(self, _other: PhantomData<fn() -> Self>) -> Selfwhere
Self: Sized,
fn assert_ty(self, _other: PhantomData<fn() -> Self>) -> Selfwhere
Self: Sized,
Asserts that
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,
Asserts that
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,
Asserts that
other
is the same type as self
.Source§fn ty_(&self) -> PhantomData<fn() -> Self>
fn ty_(&self) -> PhantomData<fn() -> Self>
Equivalent to SelfOps::T,as a method. Read more
Source§fn ty_inv(&self) -> PhantomData<fn(Self) -> Self>
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>>
fn ty_inv_ref(&self) -> PhantomData<Cell<&Self>>
Equivalent to Self::ty_ with an invariant lifetime.
Source§fn eq_id(&self, other: &Self) -> bool
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
fn piped<F, U>(self, f: F) -> U
Emulates the pipeline operator,allowing method syntax in more places. Read more
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,
The same as
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,
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
fn mutated<F>(self, f: F) -> Self
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
fn observe<F>(self, f: F) -> Self
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>) -> Twhere
Self: Into<T>,
fn into_<T>(self, _: PhantomData<fn() -> T>) -> Twhere
Self: Into<T>,
Performs a conversion using Into. Read more
Source§fn as_ref_<T>(&self) -> &T
fn as_ref_<T>(&self) -> &T
Performs a reference to reference conversion using AsRef,
using the turbofish
.as_ref_::<_>()
syntax. Read moreSource§impl<This> TransmuteElement for Thiswhere
This: ?Sized,
impl<This> TransmuteElement for Thiswhere
This: ?Sized,
Source§unsafe fn transmute_element<T>(self) -> Self::TransmutedPtr
unsafe fn transmute_element<T>(self) -> Self::TransmutedPtr
Transmutes the element type of this pointer.. Read more
Source§impl<T> TypeIdentity for Twhere
T: ?Sized,
impl<T> TypeIdentity for Twhere
T: ?Sized,
Source§fn into_type_val(self) -> Self::Type
fn into_type_val(self) -> Self::Type
Converts a value back to the original type.
Source§fn into_type_ref(&self) -> &Self::Type
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
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>
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>
fn into_type_arc(this: Arc<Self>) -> Arc<Self::Type>
Converts an Arc back to the original type.
Source§fn from_type_val(this: Self::Type) -> Self
fn from_type_val(this: Self::Type) -> Self
Converts a value back to the original type.
Source§fn from_type_ref(this: &Self::Type) -> &Self
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
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>
fn from_type_box(this: Box<Self::Type>) -> Box<Self>
Converts a box back to the original type.