pub struct ItemTraitInfo {
pub mod_name: Ident,
pub methods: Vec<TraitItemMethodInfo>,
pub original: ItemTrait,
}
Expand description
Information extracted from ItemTrait
.
Fields§
§mod_name: Ident
The name of the module that will be used to generate the module.
methods: Vec<TraitItemMethodInfo>
Information extracted from the methods.
original: ItemTrait
The original AST.
Implementations§
Source§impl ItemTraitInfo
impl ItemTraitInfo
Sourcepub fn wrapped_module(&self) -> TokenStream2
pub fn wrapped_module(&self) -> TokenStream2
Generate code that wrapps external calls.
Auto Trait Implementations§
impl Freeze for ItemTraitInfo
impl RefUnwindSafe for ItemTraitInfo
impl !Send for ItemTraitInfo
impl !Sync for ItemTraitInfo
impl Unpin for ItemTraitInfo
impl UnwindSafe for ItemTraitInfo
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