pub struct TypeVarID {
pub inner: usize,
pub type_state_key: u64,
}Fields§
§inner: usize§type_state_key: u64Key from the TypeState from which this var originates. See the key field
of the type state for details
Implementations§
Source§impl TypeVarID
impl TypeVarID
pub fn resolve(self, state: &TypeState) -> TypeVar
pub fn replace_inside( self, from: TypeVarID, to: TypeVarID, state: &mut TypeState, ) -> TypeVarID
pub fn display(self, type_state: &TypeState) -> String
pub fn display_with_meta(self, meta: bool, type_state: &TypeState) -> String
pub fn debug_resolve(self, state: &TypeState) -> TypeVarString
Trait Implementations§
Source§impl<'de> Deserialize<'de> for TypeVarID
impl<'de> Deserialize<'de> for TypeVarID
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Ord for TypeVarID
impl Ord for TypeVarID
Source§impl PartialOrd for TypeVarID
impl PartialOrd for TypeVarID
impl Copy for TypeVarID
impl Eq for TypeVarID
impl StructuralPartialEq for TypeVarID
Auto Trait Implementations§
impl Freeze for TypeVarID
impl RefUnwindSafe for TypeVarID
impl Send for TypeVarID
impl Sync for TypeVarID
impl Unpin for TypeVarID
impl UnwindSafe for TypeVarID
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,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more