[][src]Struct rustc_middle::ty::ConstnessAnd

pub struct ConstnessAnd<T> {
    pub constness: Constness,
    pub value: T,
}
⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

Fields

constness: Constness
⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

value: T
⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

Trait Implementations

impl<T: Clone> Clone for ConstnessAnd<T>[src]

impl<T: Copy> Copy for ConstnessAnd<T>[src]

impl<T: Debug> Debug for ConstnessAnd<T>[src]

impl<T: Eq> Eq for ConstnessAnd<T>[src]

impl<T: Hash> Hash for ConstnessAnd<T>[src]

impl<T: PartialEq> PartialEq<ConstnessAnd<T>> for ConstnessAnd<T>[src]

impl<T> StructuralEq for ConstnessAnd<T>[src]

impl<T> StructuralPartialEq for ConstnessAnd<T>[src]

impl<'tcx> ToPredicate<'tcx> for ConstnessAnd<TraitRef<'tcx>>[src]

impl<'tcx, '_> ToPredicate<'tcx> for ConstnessAnd<&'_ TraitRef<'tcx>>[src]

impl<'tcx> ToPredicate<'tcx> for ConstnessAnd<PolyTraitRef<'tcx>>[src]

impl<'tcx, '_> ToPredicate<'tcx> for ConstnessAnd<&'_ PolyTraitRef<'tcx>>[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for ConstnessAnd<T> where
    T: RefUnwindSafe

impl<T> Send for ConstnessAnd<T> where
    T: Send

impl<T> Sync for ConstnessAnd<T> where
    T: Sync

impl<T> Unpin for ConstnessAnd<T> where
    T: Unpin

impl<T> UnwindSafe for ConstnessAnd<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<'tcx, T> ArenaAllocatable<'tcx, ()> for T where
    T: Copy
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<'a, T> Captures<'a> for T where
    T: ?Sized
[src]

impl<T> Cast for T

impl<Q, K> Equivalent<K> for Q where
    K: Borrow<Q> + ?Sized,
    Q: Eq + ?Sized
[src]

impl<T> Erased for T[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> MaybeResult<T> for T[src]

type Error = !

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

impl<T> Same<T> for T

type Output = T

⚙️ This is an internal compiler API. (rustc_private)

This crate is being loaded from the sysroot, a permanently unstable location for private compiler dependencies. It is not intended for general use. Prefer using a public version of this crate from crates.io via Cargo.toml.

Should always be Self

impl<E> SpecializationError for E[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> WithConstness for T[src]