pub struct InterfaceInstanceDecl {
pub interface_name: ModuleName,
pub for_template: Option<ModuleName>,
pub items: Vec<InterfaceInstanceBodyItem>,
pub pos: Pos,
pub span: Span,
}Fields§
§interface_name: ModuleNameInterface being implemented (Disclosure.I).
for_template: Option<ModuleName>Explicit template from for Foo; None when omitted (the enclosing
template when declared inside one).
items: Vec<InterfaceInstanceBodyItem>View and method implementations in source order.
pos: PosPosition of the interface instance clause.
span: SpanSpan of the whole interface instance declaration.
Trait Implementations§
Source§impl Clone for InterfaceInstanceDecl
impl Clone for InterfaceInstanceDecl
Source§fn clone(&self) -> InterfaceInstanceDecl
fn clone(&self) -> InterfaceInstanceDecl
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 moreSource§impl Debug for InterfaceInstanceDecl
impl Debug for InterfaceInstanceDecl
impl Eq for InterfaceInstanceDecl
Source§impl PartialEq for InterfaceInstanceDecl
impl PartialEq for InterfaceInstanceDecl
Source§fn eq(&self, other: &InterfaceInstanceDecl) -> bool
fn eq(&self, other: &InterfaceInstanceDecl) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InterfaceInstanceDecl
Auto Trait Implementations§
impl Freeze for InterfaceInstanceDecl
impl RefUnwindSafe for InterfaceInstanceDecl
impl Send for InterfaceInstanceDecl
impl Sync for InterfaceInstanceDecl
impl Unpin for InterfaceInstanceDecl
impl UnsafeUnpin for InterfaceInstanceDecl
impl UnwindSafe for InterfaceInstanceDecl
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