Struct Union
#[must_use = "this returns the union as an iterator, without modifying either input set"]
pub struct Union<'a, T: 'a>(pub(in ::collections::btree::set) MergeIterInner<Iter<'a, T>>);
A lazy iterator producing elements in the union of BTreeSets.
This struct is created by the union method on BTreeSet.
See its documentation for more.
Fields
0: MergeIterInner<Iter<'a, T>>
Trait Implementations
impl<'a, T: Ord> Iterator for Union<'a, T>
type Item = &'a T;fn next(&mut self) -> Option<&'a T>fn size_hint(&self) -> (usize, Option<usize>)fn min(self) -> Option<&'a T>
impl<T> Clone for Union<'_, T>
fn clone(&self) -> Self
impl<T: Debug> Debug for Union<'_, T>
fn fmt(&self, f: &mut Formatter<'_>) -> Result
impl<T: Ord> FusedIterator for Union<'_, T>
Auto Trait Implementations
impl<'a, T> Freeze for Union<'a, T>
where
MergeIterInner<Iter<'a, T>>: Freeze,
impl<'a, T> RefUnwindSafe for Union<'a, T>
where
MergeIterInner<Iter<'a, T>>: RefUnwindSafe,
impl<'a, T> Send for Union<'a, T>
where
MergeIterInner<Iter<'a, T>>: Send,
impl<'a, T> Sync for Union<'a, T>
where
MergeIterInner<Iter<'a, T>>: Sync,
impl<'a, T> Unpin for Union<'a, T>
where
MergeIterInner<Iter<'a, T>>: Unpin,
impl<'a, T> UnsafeUnpin for Union<'a, T>
where
MergeIterInner<Iter<'a, T>>: UnsafeUnpin,
impl<'a, T> UnwindSafe for Union<'a, T>
where
MergeIterInner<Iter<'a, T>>: UnwindSafe,
Blanket Implementations
impl<I> IntoIterator for Union<'a, T>
where
I: Iterator,
type Item = <I as Iterator>::Item;type IntoIter = I;fn into_iter(self) -> I
impl<T> Any for Union<'a, T>
where
T: 'static + ?Sized,
fn type_id(&self) -> TypeId
impl<T> Borrow<T> for Union<'a, T>
where
T: ?Sized,
fn borrow(&self) -> &T
impl<T> BorrowMut<T> for Union<'a, T>
where
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
impl<T> CloneToUninit for Union<'a, T>
where
T: Clone,
unsafe fn clone_to_uninit(&self, dest: *mut u8)
impl<T> From<T> for Union<'a, T>
fn from(t: T) -> TReturns the argument unchanged.
impl<T> SizeHint for Union<'a, T>
where
T: ?Sized,
fn lower_bound(&self) -> usizefn upper_bound(&self) -> Option<usize>
impl<T> SizedTypeProperties for Union<'a, T>
impl<T> ToOwned for Union<'a, T>
where
T: Clone,
type Owned = T;fn to_owned(&self) -> Tfn clone_into(&self, target: &mut T)
impl<T, U> Into<U> for Union<'a, T>
where
U: From<T>,
fn into(self) -> UCalls
U::from(self).That is, this conversion is whatever the implementation of
[From]<T> for Uchooses to do.
impl<T, U> TryFrom<U> for Union<'a, T>
where
U: Into<T>,
type Error = Infallible;fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
impl<T, U> TryInto<U> for Union<'a, T>
where
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error;fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>