pub struct InstanceDecl {
pub name: Name,
pub class: Name,
pub ty: Expr,
pub priority: u32,
}Expand description
An instance of a type class.
Fields§
§name: NameInstance name
class: NameType class
ty: ExprType being instantiated
priority: u32Instance priority (lower = higher priority)
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 · 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