[][src]Enum rustc::middle::resolve_lifetime::Set1

pub enum Set1<T> {
    Empty,
    One(T),
    Many,
}
⚙️ 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.

A set containing, at most, one known element. If two distinct values are inserted into a set, then it becomes Many, which can be used to detect ambiguities.

Variants

Empty
⚙️ 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.

One(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.

Many
⚙️ 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.

Methods

impl<T: PartialEq> Set1<T>[src]

pub fn insert(&mut self, value: T)[src]

⚙️ 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 Set1<T>[src]

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

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

impl<T: Decodable> Decodable for Set1<T>[src]

impl<T: Encodable> Encodable for Set1<T>[src]

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

impl<'__ctx, T> HashStable<StableHashingContext<'__ctx>> for Set1<T> where
    T: HashStable<StableHashingContext<'__ctx>>, 
[src]

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

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

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

Auto Trait Implementations

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

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

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

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

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

Blanket Implementations

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

impl<T> ArenaAllocatable 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> Decodable for T where
    T: UseSpecializedDecodable
[src]

impl<T> Encodable for T where
    T: UseSpecializedEncodable + ?Sized
[src]

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<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.