Trait variadics::VecVariadic
source · pub trait VecVariadic: VariadicExt + Sealed {
type UnVec: VariadicExt<IntoVec = Self>;
type IntoZip: Iterator<Item = Self::UnVec>;
type Drain<'a>: Iterator<Item = Self::UnVec>
where Self: 'a;
// Required methods
fn zip_vecs(
&self,
) -> impl Iterator<Item = <Self::UnVec as VariadicExt>::AsRefVar<'_>>;
fn push(&mut self, item: Self::UnVec);
fn get(
&mut self,
index: usize,
) -> Option<<Self::UnVec as VariadicExt>::AsRefVar<'_>>;
fn into_zip(self) -> Self::IntoZip;
fn drain<R>(&mut self, range: R) -> Self::Drain<'_>
where R: RangeBounds<usize> + Clone;
}
Expand description
trait for Variadic of vecs, as formed by VariadicExt::into_vec()
Required Associated Types§
sourcetype UnVec: VariadicExt<IntoVec = Self>
type UnVec: VariadicExt<IntoVec = Self>
Individual variadic items without the Vec wrapper
Required Methods§
sourcefn zip_vecs(
&self,
) -> impl Iterator<Item = <Self::UnVec as VariadicExt>::AsRefVar<'_>>
fn zip_vecs( &self, ) -> impl Iterator<Item = <Self::UnVec as VariadicExt>::AsRefVar<'_>>
zip across all the vecs in this VariadicVec
sourcefn get(
&mut self,
index: usize,
) -> Option<<Self::UnVec as VariadicExt>::AsRefVar<'_>>
fn get( &mut self, index: usize, ) -> Option<<Self::UnVec as VariadicExt>::AsRefVar<'_>>
get the unvec’ed Variadic at position index
Object Safety§
This trait is not object safe.