pub trait ParseInputsFromIter {
    type Error;

    // Required method
    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.

Required Associated Types§

Required Methods§

source

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

Implementations on Foreign Types§

source§

impl ParseInputsFromIter for (u32, u32, u32, u32)

§

type Error = SicParserError

source§

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

source§

impl ParseInputsFromIter for String

§

type Error = SicParserError

source§

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

source§

impl ParseInputsFromIter for u32

§

type Error = SicParserError

source§

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

source§

impl ParseInputsFromIter for (u32, u32)

§

type Error = SicParserError

source§

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

source§

impl ParseInputsFromIter for (i64, i64)

§

type Error = SicParserError

source§

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

source§

impl ParseInputsFromIter for OverlayInputs

§

type Error = SicParserError

source§

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

source§

impl ParseInputsFromIter for (f32, i32)

§

type Error = SicParserError

source§

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

source§

impl ParseInputsFromIter for [f32; 9]

§

type Error = SicParserError

source§

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

source§

impl ParseInputsFromIter for f32

§

type Error = SicParserError

source§

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

source§

impl ParseInputsFromIter for bool

§

type Error = SicParserError

source§

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

source§

impl ParseInputsFromIter for i32

§

type Error = SicParserError

source§

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

source§

impl ParseInputsFromIter for FilterTypeWrap

§

type Error = SicParserError

source§

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

source§

impl ParseInputsFromIter for ImageFromPath

§

type Error = SicParserError

source§

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

source§

impl ParseInputsFromIter for GradientInput

§

type Error = SicParserError

source§

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

Implementors§