[−][src]Enum rustc_middle::middle::resolve_lifetime::Set1
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
Implementations
impl<T: PartialEq> Set1<T>[src]
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<'tcx, T, __D: TyDecoder<'tcx>> Decodable<__D> for Set1<T> where
T: Decodable<__D>, [src]
T: Decodable<__D>,
impl<'tcx, T, __E: TyEncoder<'tcx>> Encodable<__E> for Set1<T> where
T: Encodable<__E>, [src]
T: Encodable<__E>,
impl<T: Eq> Eq for Set1<T>[src]
impl<'__ctx, T> HashStable<StableHashingContext<'__ctx>> for Set1<T> where
T: HashStable<StableHashingContext<'__ctx>>, [src]
T: HashStable<StableHashingContext<'__ctx>>,
pub fn hash_stable(
&self,
__hcx: &mut StableHashingContext<'__ctx>,
__hasher: &mut StableHasher
)[src]
&self,
__hcx: &mut StableHashingContext<'__ctx>,
__hasher: &mut StableHasher
)
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,
T: RefUnwindSafe,
impl<T> Send for Set1<T> where
T: Send,
T: Send,
impl<T> Sync for Set1<T> where
T: Sync,
T: Sync,
impl<T> Unpin for Set1<T> where
T: Unpin,
T: Unpin,
impl<T> UnwindSafe for Set1<T> where
T: UnwindSafe,
T: UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<'tcx, T> ArenaAllocatable<'tcx, ()> for T where
T: Copy, [src]
T: Copy,
pub fn allocate_on(Self, &'a Arena<'tcx>) -> &'a mut T[src]
pub fn allocate_from_iter(
&'a Arena<'tcx>,
impl IntoIterator<Item = T>
) -> &'a mut [T][src]
&'a Arena<'tcx>,
impl IntoIterator<Item = T>
) -> &'a mut [T]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T[src]
impl<'a, T> Captures<'a> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> MaybeResult<T> for T[src]
type Error = !
pub fn from(Result<T, <T as MaybeResult<T>>::Error>) -> T[src]
pub fn to_result(self) -> Result<T, <T as MaybeResult<T>>::Error>[src]
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T[src]
pub fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.