Struct rustc_type_ir::TyVid [−][src]
pub struct TyVid {
pub index: u32,
}Expand description
A type variable ID.
Fields
index: u32Trait Implementations
impl Ord for TyVid[src]
impl Ord for TyVid[src]impl PartialOrd<TyVid> for TyVid[src]
impl PartialOrd<TyVid> for TyVid[src]fn partial_cmp(&self, other: &TyVid) -> Option<Ordering>[src]
fn partial_cmp(&self, other: &TyVid) -> Option<Ordering>[src]This method returns an ordering between self and other values if one exists. Read more
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn lt(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than (for self and other) and is used by the < operator. Read more
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]
#[must_use]fn le(&self, other: &Rhs) -> bool1.0.0[src]This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
impl UnifyKey for TyVid[src]
impl UnifyKey for TyVid[src]Raw TyVid are used as the unification key for sub_relations;
they carry no values.
type Value = ()
fn index(&self) -> u32[src]
fn from_index(i: u32) -> TyVid[src]
fn tag() -> &'static str[src]
fn order_roots(
a: Self,
a_value: &Self::Value,
b: Self,
b_value: &Self::Value
) -> Option<(Self, Self)>
fn order_roots(
a: Self,
a_value: &Self::Value,
b: Self,
b_value: &Self::Value
) -> Option<(Self, Self)>If true, then self should be preferred as root to other.
Note that we assume a consistent partial ordering, so
returning true implies that other.prefer_as_root_to(self)
would return false. If there is no ordering between two keys
(i.e., a.prefer_as_root_to(b) and b.prefer_as_root_to(a)
both return false) then the rank will be used to determine the
root in an optimal way. Read more
impl Copy for TyVid[src]
impl Eq for TyVid[src]
impl StructuralEq for TyVid[src]
impl StructuralPartialEq for TyVid[src]
Auto Trait Implementations
impl RefUnwindSafe for TyVid
impl Send for TyVid
impl Sync for TyVid
impl Unpin for TyVid
impl UnwindSafe for TyVid
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]pub fn borrow_mut(&mut self) -> &mut T[src]
pub fn borrow_mut(&mut self) -> &mut T[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone, [src]
impl<T> ToOwned for T where
T: Clone, [src]type Owned = T
type Owned = TThe resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn to_owned(&self) -> T[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)[src]
pub fn clone_into(&self, target: &mut T)[src]🔬 This is a nightly-only experimental API. (toowned_clone_into)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more