pub struct InstanceDecl {
pub doc: Option<DocComment>,
pub context: Vec<Constraint>,
pub class: Ident,
pub ty: Type,
pub assoc_type_defs: Vec<AssocTypeDef>,
pub methods: Vec<Decl>,
pub span: Span,
}Expand description
An instance declaration.
Fields§
§doc: Option<DocComment>Documentation comment.
context: Vec<Constraint>Instance constraints.
class: IdentClass name.
ty: TypeInstance type.
assoc_type_defs: Vec<AssocTypeDef>Associated type definitions.
methods: Vec<Decl>Method implementations.
span: SpanThe span.
Trait Implementations§
Source§impl Clone for InstanceDecl
impl Clone for InstanceDecl
Source§fn clone(&self) -> InstanceDecl
fn clone(&self) -> InstanceDecl
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for InstanceDecl
impl RefUnwindSafe for InstanceDecl
impl Send for InstanceDecl
impl Sync for InstanceDecl
impl Unpin for InstanceDecl
impl UnsafeUnpin for InstanceDecl
impl UnwindSafe for InstanceDecl
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