[][src]Trait naut_parser::value_parser::ParseInputsFromIter

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

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

Loading content...

Required methods

pub fn parse<'a, T>(iterable: T) -> Result<Self, Self::Error> where
    T: IntoIterator,
    T::Item: Into<Describable<'a>> + Debug,
    Self: Sized
[src]

Loading content...

Implementations on Foreign Types

impl ParseInputsFromIter for f32[src]

type Error = SicParserError

impl ParseInputsFromIter for i32[src]

type Error = SicParserError

impl ParseInputsFromIter for u32[src]

type Error = SicParserError

impl ParseInputsFromIter for bool[src]

type Error = SicParserError

impl ParseInputsFromIter for (u32, u32, u32, u32)[src]

type Error = SicParserError

impl ParseInputsFromIter for [f32; 9][src]

type Error = SicParserError

impl ParseInputsFromIter for (u32, u32)[src]

type Error = SicParserError

impl ParseInputsFromIter for (f32, i32)[src]

type Error = SicParserError

impl ParseInputsFromIter for String[src]

type Error = SicParserError

impl ParseInputsFromIter for ImageFromPath[src]

type Error = SicParserError

impl ParseInputsFromIter for OverlayInputs[src]

type Error = SicParserError

impl ParseInputsFromIter for FilterTypeWrap[src]

type Error = SicParserError

Loading content...

Implementors

Loading content...