pub struct ItemImplInfo {
pub is_trait_impl: bool,
pub ty: Type,
pub methods: Vec<ImplItemMethodInfo>,
}
Expand description
Information extracted from impl
section.
Fields§
§is_trait_impl: bool
Whether this is a trait implementation.
ty: Type
The type for which this impl
is written.
methods: Vec<ImplItemMethodInfo>
Info extracted for each method.
Implementations§
Source§impl ItemImplInfo
impl ItemImplInfo
Sourcepub fn wrapper_code(&self) -> TokenStream2
pub fn wrapper_code(&self) -> TokenStream2
Generate the code that wraps
pub fn marshall_code(&self) -> TokenStream2
Auto Trait Implementations§
impl Freeze for ItemImplInfo
impl RefUnwindSafe for ItemImplInfo
impl !Send for ItemImplInfo
impl !Sync for ItemImplInfo
impl Unpin for ItemImplInfo
impl UnwindSafe for ItemImplInfo
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