pub struct ImplBlock {
pub type_name: Ident,
pub generics: Vec<GenericParam>,
pub interface: Option<Ty>,
pub methods: Vec<Method>,
}Expand description
A block in impl: Stack<T: Comparable>: Container<T> { methods }.
Fields§
§type_name: IdentThe implemented type.
generics: Vec<GenericParam>Type parameters declared in the head.
interface: Option<Ty>The interface after :, if this is an interface implementation.
methods: Vec<Method>The methods, each with its doc comments.
Trait Implementations§
impl StructuralPartialEq for ImplBlock
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