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
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".