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

pub enum Set1<T> {
    Empty,
    One(T),
    Many,
}
🔬 This is a nightly-only experimental API. (rustc_private)

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

🔬 This is a nightly-only experimental API. (rustc_private)
🔬 This is a nightly-only experimental API. (rustc_private)
🔬 This is a nightly-only experimental API. (rustc_private)

Methods

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

🔬 This is a nightly-only experimental API. (rustc_private)

Trait Implementations

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

🔬 This is a nightly-only experimental API. (rustc_private)

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

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

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

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

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

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

Formats the value using the given formatter.

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

🔬 This is a nightly-only experimental API. (rustc_private)

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