Struct portrait_framework::Context
source · #[non_exhaustive]pub struct Context<'t> {
pub all_trait_items: &'t [TraitItem],
pub impl_block: &'t ItemImpl,
}Expand description
Available context parameters passed to generators.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.all_trait_items: &'t [TraitItem]All known trait items in the portrait.
impl_block: &'t ItemImplThe input impl block.
Auto Trait Implementations§
impl<'t> RefUnwindSafe for Context<'t>
impl<'t> !Send for Context<'t>
impl<'t> !Sync for Context<'t>
impl<'t> Unpin for Context<'t>
impl<'t> UnwindSafe for Context<'t>
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