pub struct Opts<B> {
pub crate_path: Path,
pub module: B,
pub name: Ident,
pub flags: Flags,
pub embed: TokenStream,
pub data: BTreeMap<Ident, TokenStream>,
pub roots: BTreeMap<String, TokenStream>,
pub plugins: Vec<Arc<dyn Plugin>>,
}Fields§
§crate_path: Path§module: B§name: Ident§flags: Flags§embed: TokenStream§data: BTreeMap<Ident, TokenStream>§roots: BTreeMap<String, TokenStream>§plugins: Vec<Arc<dyn Plugin>>Implementations§
Source§impl Opts<Module<'static>>
impl Opts<Module<'static>>
pub fn alloc(&self) -> TokenStream
pub fn fp(&self) -> TokenStream
pub fn host_tpit(&self) -> TokenStream
pub fn mem(&self, m: Memory) -> TokenStream
pub fn import( &self, module: &str, name: &str, params: impl Iterator<Item = TokenStream>, ) -> TokenStream
pub fn render_ty(&self, ctx: &TokenStream, ty: Type) -> TokenStream
pub fn render_generics( &self, ctx: &TokenStream, data: &SignatureData, ) -> TokenStream
pub fn render_fn_sig(&self, name: Ident, data: &SignatureData) -> TokenStream
pub fn fname(&self, a: Func) -> Ident
pub fn render_fun_ref(&self, ctx: &TokenStream, x: Func) -> TokenStream
pub fn render_self_sig( &self, name: Ident, wrapped: Ident, data: &SignatureData, ) -> TokenStream
pub fn render_self_sig_import( &self, name: Ident, data: &SignatureData, ) -> TokenStream
pub fn render_relooped_block( &self, f: Func, x: &ShapedBlock<Block>, ) -> TokenStream
pub fn render_fn(&self, f: Func) -> TokenStream
Trait Implementations§
Source§impl ToTokens for Opts<Module<'static>>
impl ToTokens for Opts<Module<'static>>
Source§fn to_tokens(&self, tokens: &mut TokenStream)
fn to_tokens(&self, tokens: &mut TokenStream)
Source§fn to_token_stream(&self) -> TokenStream
fn to_token_stream(&self) -> TokenStream
Source§fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
fn into_token_stream(self) -> TokenStreamwhere
Self: Sized,
Auto Trait Implementations§
impl<B> Freeze for Opts<B>where
B: Freeze,
impl<B> !RefUnwindSafe for Opts<B>
impl<B> !Send for Opts<B>
impl<B> !Sync for Opts<B>
impl<B> Unpin for Opts<B>where
B: Unpin,
impl<B> !UnwindSafe for Opts<B>
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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 moreSource§impl<F, A, B, T> OpValue<F, Either<A, B>> for T
impl<F, A, B, T> OpValue<F, Either<A, B>> for T
type Residue = <<T as OpValue<F, A>>::Residue as OpValue<F, B>>::Residue
type Capture = Either<<T as OpValue<F, A>>::Capture, <<T as OpValue<F, A>>::Residue as OpValue<F, B>>::Capture>
type Spit = Either<<T as OpValue<F, A>>::Spit, <<T as OpValue<F, A>>::Residue as OpValue<F, B>>::Spit>
fn disasm( self, f: &mut F, ) -> Result<(Either<A, B>, <T as OpValue<F, Either<A, B>>>::Capture, <T as OpValue<F, Either<A, B>>>::Spit), <T as OpValue<F, Either<A, B>>>::Residue>
fn of( f: &mut F, o: Either<A, B>, c: <T as OpValue<F, Either<A, B>>>::Capture, s: <T as OpValue<F, Either<A, B>>>::Spit, ) -> Option<T>
fn lift(f: &mut F, r: <T as OpValue<F, Either<A, B>>>::Residue) -> Option<T>
Source§impl<F, A, B, T> OpValue<F, Either<A, B>> for T
impl<F, A, B, T> OpValue<F, Either<A, B>> for T
type Residue = <<T as OpValue<F, A>>::Residue as OpValue<F, B>>::Residue
type Capture = Either<<T as OpValue<F, A>>::Capture, <<T as OpValue<F, A>>::Residue as OpValue<F, B>>::Capture>
type Spit = Either<<T as OpValue<F, A>>::Spit, <<T as OpValue<F, A>>::Residue as OpValue<F, B>>::Spit>
fn disasm( self, f: &mut F, ) -> Result<(Either<A, B>, <T as OpValue<F, Either<A, B>>>::Capture, <T as OpValue<F, Either<A, B>>>::Spit), <T as OpValue<F, Either<A, B>>>::Residue>
fn of( f: &mut F, o: Either<A, B>, c: <T as OpValue<F, Either<A, B>>>::Capture, s: <T as OpValue<F, Either<A, B>>>::Spit, ) -> Option<T>
fn lift(f: &mut F, r: <T as OpValue<F, Either<A, B>>>::Residue) -> Option<T>
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> Spanned for Twhere
T: Spanned + ?Sized,
impl<T> Spanned for Twhere
T: Spanned + ?Sized,
Source§fn span(&self) -> Span
fn span(&self) -> Span
Returns a
Span covering the complete contents of this syntax tree
node, or Span::call_site() if this node is empty.