Enum rustc_session::config::ExpectedValues
source · pub enum ExpectedValues<T> {
Some(FxHashSet<Option<T>>),
Any,
}
Variants§
Implementations§
Trait Implementations§
source§impl<'a, T: Eq + Hash + Copy + 'a> Extend<&'a T> for ExpectedValues<T>
impl<'a, T: Eq + Hash + Copy + 'a> Extend<&'a T> for ExpectedValues<T>
source§fn extend<I: IntoIterator<Item = &'a T>>(&mut self, iter: I)
fn extend<I: IntoIterator<Item = &'a T>>(&mut self, iter: I)
Extends a collection with the contents of an iterator. Read more
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
source§impl<T: Eq + Hash> Extend<T> for ExpectedValues<T>
impl<T: Eq + Hash> Extend<T> for ExpectedValues<T>
source§fn extend<I: IntoIterator<Item = T>>(&mut self, iter: I)
fn extend<I: IntoIterator<Item = T>>(&mut self, iter: I)
Extends a collection with the contents of an iterator. Read more
source§fn extend_one(&mut self, item: A)
fn extend_one(&mut self, item: A)
🔬This is a nightly-only experimental API. (
extend_one
)Extends a collection with exactly one element.
source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one
)Reserves capacity in a collection for the given number of additional elements. Read more
Auto Trait Implementations§
impl<T> RefUnwindSafe for ExpectedValues<T>where T: RefUnwindSafe,
impl<T> Send for ExpectedValues<T>where T: Send,
impl<T> Sync for ExpectedValues<T>where T: Sync,
impl<T> Unpin for ExpectedValues<T>where T: Unpin,
impl<T> UnwindSafe for ExpectedValues<T>where T: UnwindSafe,
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference's “Type Layout” chapter for details on type layout guarantees.
Size: 32 bytes
Size for each variant:
Some
: 32 bytesAny
: 0 bytes