pub struct CapabilityImpl {
pub ident: Rc<CapabilityIdent>,
pub init_fn: InitFn,
pub reset_fn: ResetFn,
pub register_fn: NewClientFn,
pub methods: Vec<ImplMethod>,
pub other_items: Vec<ImplItem>,
pub attrs: Vec<Attribute>,
}Expand description
Parsed capability from an impl block
Fields§
§ident: Rc<CapabilityIdent>§init_fn: InitFn§reset_fn: ResetFn§register_fn: NewClientFn§methods: Vec<ImplMethod>§other_items: Vec<ImplItem>§attrs: Vec<Attribute>Implementations§
Source§impl CapabilityImpl
impl CapabilityImpl
pub fn new( input: ItemImpl, required_docs: bool, cap_name: &str, cap_semver: &str, ) -> Result<Self>
Sourcepub fn expand_capability(&self) -> TokenStream
pub fn expand_capability(&self) -> TokenStream
Generate all output code
Sourcepub fn expand_module(&self) -> TokenStream
pub fn expand_module(&self) -> TokenStream
Generate all output code
Trait Implementations§
Auto Trait Implementations§
impl !Send for CapabilityImpl
impl !Sync for CapabilityImpl
impl Freeze for CapabilityImpl
impl RefUnwindSafe for CapabilityImpl
impl Unpin for CapabilityImpl
impl UnsafeUnpin for CapabilityImpl
impl UnwindSafe for CapabilityImpl
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