Trait ParseInputsFromIter

Source
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 (f32, i32)

Source§

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)

Source§

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)

Source§

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, u32, u32)

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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 DrawTextInner

Source§

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

Source§

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

Source§

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

Source§

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

Source§

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]

Source§

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§