pub struct PitPlugin {
pub tpit: OnceLock<BTreeSet<Interface>>,
pub extra: Vec<Arc<dyn PitPluginPlugin>>,
}Fields§
§tpit: OnceLock<BTreeSet<Interface>>§extra: Vec<Arc<dyn PitPluginPlugin>>Implementations§
Source§impl PitPlugin
impl PitPlugin
pub fn tpit(&self, opts: &Opts<Module<'static>>) -> &BTreeSet<Interface>
pub fn host_tpit(&self, opts: &Opts<Module<'static>>) -> Result<TokenStream>
pub fn apply_host( &self, x: TokenStream, opts: &Opts<Module<'static>>, i: &Interface, s: &str, params: &[TokenStream], ) -> Result<TokenStream>
pub fn apply_drop( &self, x: TokenStream, opts: &Opts<Module<'static>>, ) -> Result<TokenStream>
pub fn wrap( &self, opts: &Opts<Module<'static>>, x: TokenStream, ) -> Result<TokenStream>
Trait Implementations§
Source§impl Plugin for PitPlugin
impl Plugin for PitPlugin
fn exref_bounds( &self, opts: &Opts<Module<'static>>, ) -> Result<Option<TokenStream>>
fn pre(&self, module: &mut Opts<Module<'static>>) -> Result<()>
fn import( &self, opts: &Opts<Module<'static>>, module: &str, name: &str, params: Vec<TokenStream>, ) -> Result<Option<TokenStream>>
fn post(&self, opts: &Opts<Module<'static>>) -> Result<TokenStream>
fn mem_import( &self, opts: &Opts<Module<'static>>, module: &str, name: &str, ) -> Result<Option<MemImport>, Error>
fn bounds( &self, opts: &Opts<Module<'static>>, ) -> Result<Option<TokenStream>, Error>
Auto Trait Implementations§
impl !Freeze for PitPlugin
impl !RefUnwindSafe for PitPlugin
impl !Send for PitPlugin
impl !Sync for PitPlugin
impl Unpin for PitPlugin
impl !UnwindSafe for PitPlugin
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<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more