#[non_exhaustive]pub struct ImplContext<'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 ItemImpl
The input impl block.
Auto Trait Implementations§
impl<'t> Freeze for ImplContext<'t>
impl<'t> RefUnwindSafe for ImplContext<'t>
impl<'t> !Send for ImplContext<'t>
impl<'t> !Sync for ImplContext<'t>
impl<'t> Unpin for ImplContext<'t>
impl<'t> UnwindSafe for ImplContext<'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