pub trait ParseInputsFromIter {
    type Error;
    fn parse<'a, T>(iterable: T) -> Result<Self, Self::Error>
    where
        T: IntoIterator,
        T::Item: Into<Describable<'a>> + Debug,
        Self: Sized
; }
Expand description

This iteration of the parse trait should help with unifying the Pest parsing and cli ops arguments directly from &str.

From Pest we receive iterators, but we can use as_str, to request &str values. We’ll try to use this to map the received values as_str, and then we’ll have a similar structure as the image operation arguments from the cli (we receive these eventually as Vec<&str>, thus iterable.

Associated Types

Required methods

Implementations on Foreign Types

Implementors