pub struct Impl { /* private fields */ }
Expand description
Defines an impl block.
Implementations§
Source§impl Impl
impl Impl
Sourcepub fn target_generic<T>(&mut self, ty: T) -> &mut Self
pub fn target_generic<T>(&mut self, ty: T) -> &mut Self
Sourcepub fn impl_trait<T>(&mut self, ty: T) -> &mut Self
pub fn impl_trait<T>(&mut self, ty: T) -> &mut Self
Sourcepub fn associate_type<T>(&mut self, name: &str, ty: T) -> &mut Self
pub fn associate_type<T>(&mut self, name: &str, ty: T) -> &mut Self
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