pub struct ImplBlock {
pub trait_name: Option<Ident>,
pub type_name: Ident,
pub generics: Vec<GenericParam>,
pub items: Vec<Item>,
pub span: Span,
}Expand description
impl Type { ... }, or impl Trait for Type { ... } when trait_name is
present.
Fields§
§trait_name: Option<Ident>The trait this block declares a conformance to, for impl Trait for Type.
type_name: Ident§generics: Vec<GenericParam>§items: Vec<Item>§span: SpanTrait Implementations§
Auto Trait Implementations§
impl Freeze for ImplBlock
impl RefUnwindSafe for ImplBlock
impl Send for ImplBlock
impl Sync for ImplBlock
impl Unpin for ImplBlock
impl UnsafeUnpin for ImplBlock
impl UnwindSafe for ImplBlock
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