SingleArgOrCollection

Trait SingleArgOrCollection 

Source
pub trait SingleArgOrCollection<T>: IntoArgs
where T: Into<CommandArg>,
{ type IntoIter: Iterator<Item = T>; // Required method fn into_iter(self) -> Self::IntoIter; }
Expand description

Marker for collections of single items (directly convertible to CommandArg) of IntoArgs

Required Associated Types§

Source

type IntoIter: Iterator<Item = T>

Required Methods§

Source

fn into_iter(self) -> Self::IntoIter

Implementations on Foreign Types§

Source§

impl<A, T> SingleArgOrCollection<T> for SmallVec<A>
where A: Array<Item = T>, T: Into<CommandArg>,

Source§

impl<T> SingleArgOrCollection<T> for BTreeSet<T>
where T: Into<CommandArg>,

Source§

impl<T> SingleArgOrCollection<T> for Vec<T>
where T: Into<CommandArg>,

Source§

impl<T, S: BuildHasher> SingleArgOrCollection<T> for HashSet<T, S>
where T: Into<CommandArg>,

Source§

impl<T, const N: usize> SingleArgOrCollection<T> for [T; N]
where T: Into<CommandArg>,

Source§

type IntoIter = IntoIter<T, N>

Source§

fn into_iter(self) -> Self::IntoIter

Implementors§