#[non_exhaustive]pub enum InterfaceInstanceBodyItem {
View {
expr: Expr,
pos: Pos,
span: Span,
},
Method(Binding),
}Expand description
One item in an interface instance ... where body, in source order.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
View
view = <expr> binding for the interface view implementation.
Fields
Method(Binding)
An ordinary interface method implementation.
Trait Implementations§
Source§impl Clone for InterfaceInstanceBodyItem
impl Clone for InterfaceInstanceBodyItem
Source§fn clone(&self) -> InterfaceInstanceBodyItem
fn clone(&self) -> InterfaceInstanceBodyItem
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 InterfaceInstanceBodyItem
impl Debug for InterfaceInstanceBodyItem
impl Eq for InterfaceInstanceBodyItem
Source§impl PartialEq for InterfaceInstanceBodyItem
impl PartialEq for InterfaceInstanceBodyItem
Source§fn eq(&self, other: &InterfaceInstanceBodyItem) -> bool
fn eq(&self, other: &InterfaceInstanceBodyItem) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for InterfaceInstanceBodyItem
Auto Trait Implementations§
impl Freeze for InterfaceInstanceBodyItem
impl RefUnwindSafe for InterfaceInstanceBodyItem
impl Send for InterfaceInstanceBodyItem
impl Sync for InterfaceInstanceBodyItem
impl Unpin for InterfaceInstanceBodyItem
impl UnsafeUnpin for InterfaceInstanceBodyItem
impl UnwindSafe for InterfaceInstanceBodyItem
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