Struct chalk_ir::TyData

source ·
pub struct TyData<I: Interner> {
    pub kind: TyKind<I>,
    pub flags: TypeFlags,
}
Expand description

Contains the data for a Ty

Fields§

§kind: TyKind<I>

The kind

§flags: TypeFlags

Type flags

Trait Implementations§

source§

impl<I: Clone + Interner> Clone for TyData<I>

source§

fn clone(&self) -> TyData<I>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl<I: Interner> Debug for TyData<I>

source§

fn fmt(&self, fmt: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<I: Interner> HasInterner for TyData<I>

§

type Interner = I

The interner associated with the type.
source§

impl<I: Hash + Interner> Hash for TyData<I>

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl<I: PartialEq + Interner> PartialEq<TyData<I>> for TyData<I>

source§

fn eq(&self, other: &TyData<I>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl<I: Eq + Interner> Eq for TyData<I>

source§

impl<I: Interner> StructuralEq for TyData<I>

source§

impl<I: Interner> StructuralPartialEq for TyData<I>

Auto Trait Implementations§

§

impl<I> RefUnwindSafe for TyData<I>where <I as Interner>::DefId: RefUnwindSafe, <I as Interner>::FnAbi: RefUnwindSafe, <I as Interner>::InternedAdtId: RefUnwindSafe, <I as Interner>::InternedConst: RefUnwindSafe, <I as Interner>::InternedLifetime: RefUnwindSafe, <I as Interner>::InternedQuantifiedWhereClauses: RefUnwindSafe, <I as Interner>::InternedSubstitution: RefUnwindSafe, <I as Interner>::InternedType: RefUnwindSafe, <I as Interner>::InternedVariableKinds: RefUnwindSafe,

§

impl<I> Send for TyData<I>where <I as Interner>::DefId: Send, <I as Interner>::FnAbi: Send, <I as Interner>::InternedAdtId: Send, <I as Interner>::InternedConst: Send, <I as Interner>::InternedLifetime: Send, <I as Interner>::InternedQuantifiedWhereClauses: Send, <I as Interner>::InternedSubstitution: Send, <I as Interner>::InternedType: Send, <I as Interner>::InternedVariableKinds: Send,

§

impl<I> Sync for TyData<I>where <I as Interner>::DefId: Sync, <I as Interner>::FnAbi: Sync, <I as Interner>::InternedAdtId: Sync, <I as Interner>::InternedConst: Sync, <I as Interner>::InternedLifetime: Sync, <I as Interner>::InternedQuantifiedWhereClauses: Sync, <I as Interner>::InternedSubstitution: Sync, <I as Interner>::InternedType: Sync, <I as Interner>::InternedVariableKinds: Sync,

§

impl<I> Unpin for TyData<I>where <I as Interner>::DefId: Unpin, <I as Interner>::FnAbi: Unpin, <I as Interner>::InternedAdtId: Unpin, <I as Interner>::InternedConst: Unpin, <I as Interner>::InternedLifetime: Unpin, <I as Interner>::InternedQuantifiedWhereClauses: Unpin, <I as Interner>::InternedSubstitution: Unpin, <I as Interner>::InternedType: Unpin, <I as Interner>::InternedVariableKinds: Unpin,

§

impl<I> UnwindSafe for TyData<I>where <I as Interner>::DefId: UnwindSafe, <I as Interner>::FnAbi: UnwindSafe, <I as Interner>::InternedAdtId: UnwindSafe, <I as Interner>::InternedConst: UnwindSafe, <I as Interner>::InternedLifetime: UnwindSafe, <I as Interner>::InternedQuantifiedWhereClauses: UnwindSafe, <I as Interner>::InternedSubstitution: UnwindSafe, <I as Interner>::InternedType: UnwindSafe, <I as Interner>::InternedVariableKinds: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> Cast for T

source§

fn cast<U>(self, interner: U::Interner) -> Uwhere Self: CastTo<U>, U: HasInterner,

Cast a value to type U using CastTo.
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for Twhere T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.