Trait argonaut::CollectionTarget
[−]
[src]
pub trait CollectionTarget: Debug { fn parse_and_add(&mut self, value: &str) -> Result<(), String>; }
Allows a collection to be extended with values read from arguments.
Required Methods
fn parse_and_add(&mut self, value: &str) -> Result<(), String>
Parses the value and adds it to this collection.
Implementations on Foreign Types
impl<T> CollectionTarget for Vec<T> where
T: Debug + FromStr,
[src]
T: Debug + FromStr,
impl<T> CollectionTarget for BinaryHeap<T> where
T: Debug + FromStr + Ord,
[src]
T: Debug + FromStr + Ord,
impl<T> CollectionTarget for BTreeSet<T> where
T: Debug + FromStr + Ord,
[src]
T: Debug + FromStr + Ord,
impl<T> CollectionTarget for HashSet<T> where
T: Debug + FromStr + Hash + Eq,
[src]
T: Debug + FromStr + Hash + Eq,
impl<T> CollectionTarget for LinkedList<T> where
T: Debug + FromStr,
[src]
T: Debug + FromStr,
impl<T> CollectionTarget for VecDeque<T> where
T: Debug + FromStr,
[src]
T: Debug + FromStr,