pub enum InstanceHead {
Type(QualName, Vec<Name>),
Tuple(Tuple<Name>),
Unit,
}Expand description
The type an instance is for: a declared type applied to distinct variables, one per
parameter; a tuple of distinct variables; or ().
Variants§
Type(QualName, Vec<Name>)
A declared type, named by its declaration, and the variables it is applied to.
Tuple(Tuple<Name>)
Unit
Implementations§
Trait Implementations§
Source§impl Clone for InstanceHead
impl Clone for InstanceHead
Source§fn clone(&self) -> InstanceHead
fn clone(&self) -> InstanceHead
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 InstanceHead
impl Debug for InstanceHead
impl Eq for InstanceHead
Source§impl Hash for InstanceHead
impl Hash for InstanceHead
Source§impl PartialEq for InstanceHead
impl PartialEq for InstanceHead
impl StructuralPartialEq for InstanceHead
Auto Trait Implementations§
impl Freeze for InstanceHead
impl RefUnwindSafe for InstanceHead
impl Send for InstanceHead
impl Sync for InstanceHead
impl Unpin for InstanceHead
impl UnsafeUnpin for InstanceHead
impl UnwindSafe for InstanceHead
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more