Trait itertools::tuple_impl::TupleCollect
source · pub trait TupleCollect: Sized {
type Item;
type Buffer: Default + AsRef<[Option<Self::Item>]> + AsMut<[Option<Self::Item>]>;
// Required methods
fn collect_from_iter<I>(iter: I, buf: &mut Self::Buffer) -> Option<Self>
where I: IntoIterator<Item = Self::Item>;
fn collect_from_iter_no_buf<I>(iter: I) -> Option<Self>
where I: IntoIterator<Item = Self::Item>;
fn num_items() -> usize;
fn left_shift_push(&mut self, item: Self::Item);
// Provided method
fn buffer_len(buf: &Self::Buffer) -> usize { ... }
}
Required Associated Types§
type Item
type Buffer: Default + AsRef<[Option<Self::Item>]> + AsMut<[Option<Self::Item>]>
Required Methods§
fn collect_from_iter<I>(iter: I, buf: &mut Self::Buffer) -> Option<Self>where
I: IntoIterator<Item = Self::Item>,
fn collect_from_iter_no_buf<I>(iter: I) -> Option<Self>where
I: IntoIterator<Item = Self::Item>,
fn num_items() -> usize
fn left_shift_push(&mut self, item: Self::Item)
Provided Methods§
fn buffer_len(buf: &Self::Buffer) -> usize
Object Safety§
This trait is not object safe.