pub struct TargetSet { /* private fields */ }Expand description
A set of unique Targets, ordered by target triple.
The targets are held behind an Arc, so cloning a set, and with it cloning
the Toolchain which holds it, does not copy its targets.
Two toolchains which support the same targets can share a single set. As you can imagine, this happens a lot in Rust distribution land, so it’s well worth vs a regular BTreeSet ;).
Implementations§
Trait Implementations§
impl Eq for TargetSet
Source§impl FromIterator<Target> for TargetSet
impl FromIterator<Target> for TargetSet
Source§impl<'a> IntoIterator for &'a TargetSet
impl<'a> IntoIterator for &'a TargetSet
Auto Trait Implementations§
impl Freeze for TargetSet
impl RefUnwindSafe for TargetSet
impl Send for TargetSet
impl Sync for TargetSet
impl Unpin for TargetSet
impl UnsafeUnpin for TargetSet
impl UnwindSafe for TargetSet
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