pub struct Impl { /* private fields */ }Expand description
Represents an impl block
Implementations§
Source§impl Impl
impl Impl
Sourcepub fn set_impl_trait(&mut self, impl_trait: Option<Trait>) -> &mut Self
pub fn set_impl_trait(&mut self, impl_trait: Option<Trait>) -> &mut Self
Set if this impl is implementing a Trait for an object.
Sourcepub fn add_function(&mut self, func: Function) -> &mut Self
pub fn add_function(&mut self, func: Function) -> &mut Self
Add a function to this Impl block
Sourcepub fn add_generic(&mut self, generic: Generic) -> &mut Self
pub fn add_generic(&mut self, generic: Generic) -> &mut Self
Add a generic to this Impl block
Sourcepub fn add_associated_type(
&mut self,
associated_type: AssociatedTypeDefinition,
) -> &mut Self
pub fn add_associated_type( &mut self, associated_type: AssociatedTypeDefinition, ) -> &mut Self
Add a associated type to this Impl block
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Impl
impl RefUnwindSafe for Impl
impl Send for Impl
impl Sync for Impl
impl Unpin for Impl
impl UnwindSafe for Impl
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