Skip to main content

SumSource

Struct SumSource 

Source
pub struct SumSource<Alternatives, Presence = Whole> { /* private fields */ }
Expand description

Declares the alternatives of a sum, one named source each, in the order of the sum’s.

Implementations§

Source§

impl SumSource<()>

Source

pub fn new() -> Self

Starts a sum with no alternatives.

Source§

impl<Alternatives, Presence> SumSource<Alternatives, Presence>

Source

pub fn or<Source>( self, name: &'static str, source: Source, ) -> SumSource<(Alternatives, Source), Presence>
where Source: CliNamedSource,

Declares the source of the next alternative, the one named name.

defunc(via = cli) checks the name against the sum’s own alternative when the program compiles, reporting a source written for another alternative where it is written.

Source

pub fn optional(self) -> SumSource<Alternatives, Optional>

Supplies Option of the sum: at most one alternative.

Trait Implementations§

Source§

impl<Alternatives, Value> CliPartsFor<StatedArg<Option<Value>>> for SumSource<Alternatives, Optional>
where Value: Sum,

Source§

const PARTS: &'static [&'static str] = Value::ALTERNATIVES

The argument’s part names, in order.
Source§

const PART: &'static str = "alternative"

What one part is called: field or alternative.
Source§

const WHOLE: &'static str = "sum"

What the whole is called: product or sum.
Source§

impl<Alternatives, Value> CliPartsFor<StatedArg<Value>> for SumSource<Alternatives, Whole>
where Value: Sum,

Source§

const PARTS: &'static [&'static str] = Value::ALTERNATIVES

The argument’s part names, in order.
Source§

const PART: &'static str = "alternative"

What one part is called: field or alternative.
Source§

const WHOLE: &'static str = "sum"

What the whole is called: product or sum.
Source§

impl<Value, Decoder, Error, S0, A0, S1, A1> CliSourceDecode<Option<Value>, Decoder, Error> for SumSource<(((), S0), S1), Optional>
where Value: Sum<Alternatives = Sum2<A0, A1>>, (((), S0), S1): CliSources<(A0, A1)>, Decoder: CliWordsAlg, S0: CliSourceDecode<A0, Decoder, Error>, S1: CliSourceDecode<A1, Decoder, Error>,

Source§

fn cli_decode_source( &self, arguments: &mut &[ArgumentInfo], decoder: &Decoder, ) -> Result<Option<Value>, CliArgumentError<Error>>

Decodes the argument from the words decoder gives for the arguments this source was described as, taken from the front of arguments. Read more
Source§

impl<Value, Decoder, Error, S0, A0, S1, A1, S2, A2> CliSourceDecode<Option<Value>, Decoder, Error> for SumSource<((((), S0), S1), S2), Optional>
where Value: Sum<Alternatives = Sum3<A0, A1, A2>>, ((((), S0), S1), S2): CliSources<(A0, A1, A2)>, Decoder: CliWordsAlg, S0: CliSourceDecode<A0, Decoder, Error>, S1: CliSourceDecode<A1, Decoder, Error>, S2: CliSourceDecode<A2, Decoder, Error>,

Source§

fn cli_decode_source( &self, arguments: &mut &[ArgumentInfo], decoder: &Decoder, ) -> Result<Option<Value>, CliArgumentError<Error>>

Decodes the argument from the words decoder gives for the arguments this source was described as, taken from the front of arguments. Read more
Source§

impl<Value, Decoder, Error, S0, A0, S1, A1, S2, A2, S3, A3> CliSourceDecode<Option<Value>, Decoder, Error> for SumSource<(((((), S0), S1), S2), S3), Optional>
where Value: Sum<Alternatives = Sum4<A0, A1, A2, A3>>, (((((), S0), S1), S2), S3): CliSources<(A0, A1, A2, A3)>, Decoder: CliWordsAlg, S0: CliSourceDecode<A0, Decoder, Error>, S1: CliSourceDecode<A1, Decoder, Error>, S2: CliSourceDecode<A2, Decoder, Error>, S3: CliSourceDecode<A3, Decoder, Error>,

Source§

fn cli_decode_source( &self, arguments: &mut &[ArgumentInfo], decoder: &Decoder, ) -> Result<Option<Value>, CliArgumentError<Error>>

Decodes the argument from the words decoder gives for the arguments this source was described as, taken from the front of arguments. Read more
Source§

impl<Value, Decoder, Error, S0, A0, S1, A1, S2, A2, S3, A3, S4, A4> CliSourceDecode<Option<Value>, Decoder, Error> for SumSource<((((((), S0), S1), S2), S3), S4), Optional>
where Value: Sum<Alternatives = Sum5<A0, A1, A2, A3, A4>>, ((((((), S0), S1), S2), S3), S4): CliSources<(A0, A1, A2, A3, A4)>, Decoder: CliWordsAlg, S0: CliSourceDecode<A0, Decoder, Error>, S1: CliSourceDecode<A1, Decoder, Error>, S2: CliSourceDecode<A2, Decoder, Error>, S3: CliSourceDecode<A3, Decoder, Error>, S4: CliSourceDecode<A4, Decoder, Error>,

Source§

fn cli_decode_source( &self, arguments: &mut &[ArgumentInfo], decoder: &Decoder, ) -> Result<Option<Value>, CliArgumentError<Error>>

Decodes the argument from the words decoder gives for the arguments this source was described as, taken from the front of arguments. Read more
Source§

impl<Value, Decoder, Error, S0, A0, S1, A1, S2, A2, S3, A3, S4, A4, S5, A5> CliSourceDecode<Option<Value>, Decoder, Error> for SumSource<(((((((), S0), S1), S2), S3), S4), S5), Optional>
where Value: Sum<Alternatives = Sum6<A0, A1, A2, A3, A4, A5>>, (((((((), S0), S1), S2), S3), S4), S5): CliSources<(A0, A1, A2, A3, A4, A5)>, Decoder: CliWordsAlg, S0: CliSourceDecode<A0, Decoder, Error>, S1: CliSourceDecode<A1, Decoder, Error>, S2: CliSourceDecode<A2, Decoder, Error>, S3: CliSourceDecode<A3, Decoder, Error>, S4: CliSourceDecode<A4, Decoder, Error>, S5: CliSourceDecode<A5, Decoder, Error>,

Source§

fn cli_decode_source( &self, arguments: &mut &[ArgumentInfo], decoder: &Decoder, ) -> Result<Option<Value>, CliArgumentError<Error>>

Decodes the argument from the words decoder gives for the arguments this source was described as, taken from the front of arguments. Read more
Source§

impl<Value, Decoder, Error, S0, A0, S1, A1, S2, A2, S3, A3, S4, A4, S5, A5, S6, A6> CliSourceDecode<Option<Value>, Decoder, Error> for SumSource<((((((((), S0), S1), S2), S3), S4), S5), S6), Optional>
where Value: Sum<Alternatives = Sum7<A0, A1, A2, A3, A4, A5, A6>>, ((((((((), S0), S1), S2), S3), S4), S5), S6): CliSources<(A0, A1, A2, A3, A4, A5, A6)>, Decoder: CliWordsAlg, S0: CliSourceDecode<A0, Decoder, Error>, S1: CliSourceDecode<A1, Decoder, Error>, S2: CliSourceDecode<A2, Decoder, Error>, S3: CliSourceDecode<A3, Decoder, Error>, S4: CliSourceDecode<A4, Decoder, Error>, S5: CliSourceDecode<A5, Decoder, Error>, S6: CliSourceDecode<A6, Decoder, Error>,

Source§

fn cli_decode_source( &self, arguments: &mut &[ArgumentInfo], decoder: &Decoder, ) -> Result<Option<Value>, CliArgumentError<Error>>

Decodes the argument from the words decoder gives for the arguments this source was described as, taken from the front of arguments. Read more
Source§

impl<Value, Decoder, Error, S0, A0, S1, A1, S2, A2, S3, A3, S4, A4, S5, A5, S6, A6, S7, A7> CliSourceDecode<Option<Value>, Decoder, Error> for SumSource<(((((((((), S0), S1), S2), S3), S4), S5), S6), S7), Optional>
where Value: Sum<Alternatives = Sum8<A0, A1, A2, A3, A4, A5, A6, A7>>, (((((((((), S0), S1), S2), S3), S4), S5), S6), S7): CliSources<(A0, A1, A2, A3, A4, A5, A6, A7)>, Decoder: CliWordsAlg, S0: CliSourceDecode<A0, Decoder, Error>, S1: CliSourceDecode<A1, Decoder, Error>, S2: CliSourceDecode<A2, Decoder, Error>, S3: CliSourceDecode<A3, Decoder, Error>, S4: CliSourceDecode<A4, Decoder, Error>, S5: CliSourceDecode<A5, Decoder, Error>, S6: CliSourceDecode<A6, Decoder, Error>, S7: CliSourceDecode<A7, Decoder, Error>,

Source§

fn cli_decode_source( &self, arguments: &mut &[ArgumentInfo], decoder: &Decoder, ) -> Result<Option<Value>, CliArgumentError<Error>>

Decodes the argument from the words decoder gives for the arguments this source was described as, taken from the front of arguments. Read more
Source§

impl<Value, Decoder, Error, S0, A0, S1, A1, S2, A2, S3, A3, S4, A4, S5, A5, S6, A6, S7, A7, S8, A8> CliSourceDecode<Option<Value>, Decoder, Error> for SumSource<((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), Optional>
where Value: Sum<Alternatives = Sum9<A0, A1, A2, A3, A4, A5, A6, A7, A8>>, ((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8): CliSources<(A0, A1, A2, A3, A4, A5, A6, A7, A8)>, Decoder: CliWordsAlg, S0: CliSourceDecode<A0, Decoder, Error>, S1: CliSourceDecode<A1, Decoder, Error>, S2: CliSourceDecode<A2, Decoder, Error>, S3: CliSourceDecode<A3, Decoder, Error>, S4: CliSourceDecode<A4, Decoder, Error>, S5: CliSourceDecode<A5, Decoder, Error>, S6: CliSourceDecode<A6, Decoder, Error>, S7: CliSourceDecode<A7, Decoder, Error>, S8: CliSourceDecode<A8, Decoder, Error>,

Source§

fn cli_decode_source( &self, arguments: &mut &[ArgumentInfo], decoder: &Decoder, ) -> Result<Option<Value>, CliArgumentError<Error>>

Decodes the argument from the words decoder gives for the arguments this source was described as, taken from the front of arguments. Read more
Source§

impl<Value, Decoder, Error, S0, A0, S1, A1, S2, A2, S3, A3, S4, A4, S5, A5, S6, A6, S7, A7, S8, A8, S9, A9> CliSourceDecode<Option<Value>, Decoder, Error> for SumSource<(((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), Optional>
where Value: Sum<Alternatives = Sum10<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9>>, (((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9): CliSources<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9)>, Decoder: CliWordsAlg, S0: CliSourceDecode<A0, Decoder, Error>, S1: CliSourceDecode<A1, Decoder, Error>, S2: CliSourceDecode<A2, Decoder, Error>, S3: CliSourceDecode<A3, Decoder, Error>, S4: CliSourceDecode<A4, Decoder, Error>, S5: CliSourceDecode<A5, Decoder, Error>, S6: CliSourceDecode<A6, Decoder, Error>, S7: CliSourceDecode<A7, Decoder, Error>, S8: CliSourceDecode<A8, Decoder, Error>, S9: CliSourceDecode<A9, Decoder, Error>,

Source§

fn cli_decode_source( &self, arguments: &mut &[ArgumentInfo], decoder: &Decoder, ) -> Result<Option<Value>, CliArgumentError<Error>>

Decodes the argument from the words decoder gives for the arguments this source was described as, taken from the front of arguments. Read more
Source§

impl<Value, Decoder, Error, S0, A0, S1, A1, S2, A2, S3, A3, S4, A4, S5, A5, S6, A6, S7, A7, S8, A8, S9, A9, S10, A10> CliSourceDecode<Option<Value>, Decoder, Error> for SumSource<((((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), S10), Optional>
where Value: Sum<Alternatives = Sum11<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10>>, ((((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), S10): CliSources<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)>, Decoder: CliWordsAlg, S0: CliSourceDecode<A0, Decoder, Error>, S1: CliSourceDecode<A1, Decoder, Error>, S2: CliSourceDecode<A2, Decoder, Error>, S3: CliSourceDecode<A3, Decoder, Error>, S4: CliSourceDecode<A4, Decoder, Error>, S5: CliSourceDecode<A5, Decoder, Error>, S6: CliSourceDecode<A6, Decoder, Error>, S7: CliSourceDecode<A7, Decoder, Error>, S8: CliSourceDecode<A8, Decoder, Error>, S9: CliSourceDecode<A9, Decoder, Error>, S10: CliSourceDecode<A10, Decoder, Error>,

Source§

fn cli_decode_source( &self, arguments: &mut &[ArgumentInfo], decoder: &Decoder, ) -> Result<Option<Value>, CliArgumentError<Error>>

Decodes the argument from the words decoder gives for the arguments this source was described as, taken from the front of arguments. Read more
Source§

impl<Value, Decoder, Error, S0, A0, S1, A1, S2, A2, S3, A3, S4, A4, S5, A5, S6, A6, S7, A7, S8, A8, S9, A9, S10, A10, S11, A11> CliSourceDecode<Option<Value>, Decoder, Error> for SumSource<(((((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), S10), S11), Optional>
where Value: Sum<Alternatives = Sum12<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11>>, (((((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), S10), S11): CliSources<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11)>, Decoder: CliWordsAlg, S0: CliSourceDecode<A0, Decoder, Error>, S1: CliSourceDecode<A1, Decoder, Error>, S2: CliSourceDecode<A2, Decoder, Error>, S3: CliSourceDecode<A3, Decoder, Error>, S4: CliSourceDecode<A4, Decoder, Error>, S5: CliSourceDecode<A5, Decoder, Error>, S6: CliSourceDecode<A6, Decoder, Error>, S7: CliSourceDecode<A7, Decoder, Error>, S8: CliSourceDecode<A8, Decoder, Error>, S9: CliSourceDecode<A9, Decoder, Error>, S10: CliSourceDecode<A10, Decoder, Error>, S11: CliSourceDecode<A11, Decoder, Error>,

Source§

fn cli_decode_source( &self, arguments: &mut &[ArgumentInfo], decoder: &Decoder, ) -> Result<Option<Value>, CliArgumentError<Error>>

Decodes the argument from the words decoder gives for the arguments this source was described as, taken from the front of arguments. Read more
Source§

impl<Value, Decoder, Error, S0, A0, S1, A1, S2, A2, S3, A3, S4, A4, S5, A5, S6, A6, S7, A7, S8, A8, S9, A9, S10, A10, S11, A11, S12, A12> CliSourceDecode<Option<Value>, Decoder, Error> for SumSource<((((((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), S10), S11), S12), Optional>
where Value: Sum<Alternatives = Sum13<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12>>, ((((((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), S10), S11), S12): CliSources<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12)>, Decoder: CliWordsAlg, S0: CliSourceDecode<A0, Decoder, Error>, S1: CliSourceDecode<A1, Decoder, Error>, S2: CliSourceDecode<A2, Decoder, Error>, S3: CliSourceDecode<A3, Decoder, Error>, S4: CliSourceDecode<A4, Decoder, Error>, S5: CliSourceDecode<A5, Decoder, Error>, S6: CliSourceDecode<A6, Decoder, Error>, S7: CliSourceDecode<A7, Decoder, Error>, S8: CliSourceDecode<A8, Decoder, Error>, S9: CliSourceDecode<A9, Decoder, Error>, S10: CliSourceDecode<A10, Decoder, Error>, S11: CliSourceDecode<A11, Decoder, Error>, S12: CliSourceDecode<A12, Decoder, Error>,

Source§

fn cli_decode_source( &self, arguments: &mut &[ArgumentInfo], decoder: &Decoder, ) -> Result<Option<Value>, CliArgumentError<Error>>

Decodes the argument from the words decoder gives for the arguments this source was described as, taken from the front of arguments. Read more
Source§

impl<Value, Decoder, Error, S0, A0, S1, A1, S2, A2, S3, A3, S4, A4, S5, A5, S6, A6, S7, A7, S8, A8, S9, A9, S10, A10, S11, A11, S12, A12, S13, A13> CliSourceDecode<Option<Value>, Decoder, Error> for SumSource<(((((((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), S10), S11), S12), S13), Optional>
where Value: Sum<Alternatives = Sum14<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13>>, (((((((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), S10), S11), S12), S13): CliSources<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13)>, Decoder: CliWordsAlg, S0: CliSourceDecode<A0, Decoder, Error>, S1: CliSourceDecode<A1, Decoder, Error>, S2: CliSourceDecode<A2, Decoder, Error>, S3: CliSourceDecode<A3, Decoder, Error>, S4: CliSourceDecode<A4, Decoder, Error>, S5: CliSourceDecode<A5, Decoder, Error>, S6: CliSourceDecode<A6, Decoder, Error>, S7: CliSourceDecode<A7, Decoder, Error>, S8: CliSourceDecode<A8, Decoder, Error>, S9: CliSourceDecode<A9, Decoder, Error>, S10: CliSourceDecode<A10, Decoder, Error>, S11: CliSourceDecode<A11, Decoder, Error>, S12: CliSourceDecode<A12, Decoder, Error>, S13: CliSourceDecode<A13, Decoder, Error>,

Source§

fn cli_decode_source( &self, arguments: &mut &[ArgumentInfo], decoder: &Decoder, ) -> Result<Option<Value>, CliArgumentError<Error>>

Decodes the argument from the words decoder gives for the arguments this source was described as, taken from the front of arguments. Read more
Source§

impl<Value, Decoder, Error, S0, A0, S1, A1, S2, A2, S3, A3, S4, A4, S5, A5, S6, A6, S7, A7, S8, A8, S9, A9, S10, A10, S11, A11, S12, A12, S13, A13, S14, A14> CliSourceDecode<Option<Value>, Decoder, Error> for SumSource<((((((((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), S10), S11), S12), S13), S14), Optional>
where Value: Sum<Alternatives = Sum15<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14>>, ((((((((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), S10), S11), S12), S13), S14): CliSources<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14)>, Decoder: CliWordsAlg, S0: CliSourceDecode<A0, Decoder, Error>, S1: CliSourceDecode<A1, Decoder, Error>, S2: CliSourceDecode<A2, Decoder, Error>, S3: CliSourceDecode<A3, Decoder, Error>, S4: CliSourceDecode<A4, Decoder, Error>, S5: CliSourceDecode<A5, Decoder, Error>, S6: CliSourceDecode<A6, Decoder, Error>, S7: CliSourceDecode<A7, Decoder, Error>, S8: CliSourceDecode<A8, Decoder, Error>, S9: CliSourceDecode<A9, Decoder, Error>, S10: CliSourceDecode<A10, Decoder, Error>, S11: CliSourceDecode<A11, Decoder, Error>, S12: CliSourceDecode<A12, Decoder, Error>, S13: CliSourceDecode<A13, Decoder, Error>, S14: CliSourceDecode<A14, Decoder, Error>,

Source§

fn cli_decode_source( &self, arguments: &mut &[ArgumentInfo], decoder: &Decoder, ) -> Result<Option<Value>, CliArgumentError<Error>>

Decodes the argument from the words decoder gives for the arguments this source was described as, taken from the front of arguments. Read more
Source§

impl<Value, Decoder, Error, S0, A0, S1, A1, S2, A2, S3, A3, S4, A4, S5, A5, S6, A6, S7, A7, S8, A8, S9, A9, S10, A10, S11, A11, S12, A12, S13, A13, S14, A14, S15, A15> CliSourceDecode<Option<Value>, Decoder, Error> for SumSource<(((((((((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), S10), S11), S12), S13), S14), S15), Optional>
where Value: Sum<Alternatives = Sum16<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15>>, (((((((((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), S10), S11), S12), S13), S14), S15): CliSources<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15)>, Decoder: CliWordsAlg, S0: CliSourceDecode<A0, Decoder, Error>, S1: CliSourceDecode<A1, Decoder, Error>, S2: CliSourceDecode<A2, Decoder, Error>, S3: CliSourceDecode<A3, Decoder, Error>, S4: CliSourceDecode<A4, Decoder, Error>, S5: CliSourceDecode<A5, Decoder, Error>, S6: CliSourceDecode<A6, Decoder, Error>, S7: CliSourceDecode<A7, Decoder, Error>, S8: CliSourceDecode<A8, Decoder, Error>, S9: CliSourceDecode<A9, Decoder, Error>, S10: CliSourceDecode<A10, Decoder, Error>, S11: CliSourceDecode<A11, Decoder, Error>, S12: CliSourceDecode<A12, Decoder, Error>, S13: CliSourceDecode<A13, Decoder, Error>, S14: CliSourceDecode<A14, Decoder, Error>, S15: CliSourceDecode<A15, Decoder, Error>,

Source§

fn cli_decode_source( &self, arguments: &mut &[ArgumentInfo], decoder: &Decoder, ) -> Result<Option<Value>, CliArgumentError<Error>>

Decodes the argument from the words decoder gives for the arguments this source was described as, taken from the front of arguments. Read more
Source§

impl<Value, Decoder, Error, S0, A0, S1, A1> CliSourceDecode<Value, Decoder, Error> for SumSource<(((), S0), S1), Whole>
where Value: Sum<Alternatives = Sum2<A0, A1>>, (((), S0), S1): CliSources<(A0, A1)>, Decoder: CliWordsAlg, S0: CliSourceDecode<A0, Decoder, Error>, S1: CliSourceDecode<A1, Decoder, Error>,

Source§

fn cli_decode_source( &self, arguments: &mut &[ArgumentInfo], decoder: &Decoder, ) -> Result<Value, CliArgumentError<Error>>

Decodes the argument from the words decoder gives for the arguments this source was described as, taken from the front of arguments. Read more
Source§

impl<Value, Decoder, Error, S0, A0, S1, A1, S2, A2> CliSourceDecode<Value, Decoder, Error> for SumSource<((((), S0), S1), S2), Whole>
where Value: Sum<Alternatives = Sum3<A0, A1, A2>>, ((((), S0), S1), S2): CliSources<(A0, A1, A2)>, Decoder: CliWordsAlg, S0: CliSourceDecode<A0, Decoder, Error>, S1: CliSourceDecode<A1, Decoder, Error>, S2: CliSourceDecode<A2, Decoder, Error>,

Source§

fn cli_decode_source( &self, arguments: &mut &[ArgumentInfo], decoder: &Decoder, ) -> Result<Value, CliArgumentError<Error>>

Decodes the argument from the words decoder gives for the arguments this source was described as, taken from the front of arguments. Read more
Source§

impl<Value, Decoder, Error, S0, A0, S1, A1, S2, A2, S3, A3> CliSourceDecode<Value, Decoder, Error> for SumSource<(((((), S0), S1), S2), S3), Whole>
where Value: Sum<Alternatives = Sum4<A0, A1, A2, A3>>, (((((), S0), S1), S2), S3): CliSources<(A0, A1, A2, A3)>, Decoder: CliWordsAlg, S0: CliSourceDecode<A0, Decoder, Error>, S1: CliSourceDecode<A1, Decoder, Error>, S2: CliSourceDecode<A2, Decoder, Error>, S3: CliSourceDecode<A3, Decoder, Error>,

Source§

fn cli_decode_source( &self, arguments: &mut &[ArgumentInfo], decoder: &Decoder, ) -> Result<Value, CliArgumentError<Error>>

Decodes the argument from the words decoder gives for the arguments this source was described as, taken from the front of arguments. Read more
Source§

impl<Value, Decoder, Error, S0, A0, S1, A1, S2, A2, S3, A3, S4, A4> CliSourceDecode<Value, Decoder, Error> for SumSource<((((((), S0), S1), S2), S3), S4), Whole>
where Value: Sum<Alternatives = Sum5<A0, A1, A2, A3, A4>>, ((((((), S0), S1), S2), S3), S4): CliSources<(A0, A1, A2, A3, A4)>, Decoder: CliWordsAlg, S0: CliSourceDecode<A0, Decoder, Error>, S1: CliSourceDecode<A1, Decoder, Error>, S2: CliSourceDecode<A2, Decoder, Error>, S3: CliSourceDecode<A3, Decoder, Error>, S4: CliSourceDecode<A4, Decoder, Error>,

Source§

fn cli_decode_source( &self, arguments: &mut &[ArgumentInfo], decoder: &Decoder, ) -> Result<Value, CliArgumentError<Error>>

Decodes the argument from the words decoder gives for the arguments this source was described as, taken from the front of arguments. Read more
Source§

impl<Value, Decoder, Error, S0, A0, S1, A1, S2, A2, S3, A3, S4, A4, S5, A5> CliSourceDecode<Value, Decoder, Error> for SumSource<(((((((), S0), S1), S2), S3), S4), S5), Whole>
where Value: Sum<Alternatives = Sum6<A0, A1, A2, A3, A4, A5>>, (((((((), S0), S1), S2), S3), S4), S5): CliSources<(A0, A1, A2, A3, A4, A5)>, Decoder: CliWordsAlg, S0: CliSourceDecode<A0, Decoder, Error>, S1: CliSourceDecode<A1, Decoder, Error>, S2: CliSourceDecode<A2, Decoder, Error>, S3: CliSourceDecode<A3, Decoder, Error>, S4: CliSourceDecode<A4, Decoder, Error>, S5: CliSourceDecode<A5, Decoder, Error>,

Source§

fn cli_decode_source( &self, arguments: &mut &[ArgumentInfo], decoder: &Decoder, ) -> Result<Value, CliArgumentError<Error>>

Decodes the argument from the words decoder gives for the arguments this source was described as, taken from the front of arguments. Read more
Source§

impl<Value, Decoder, Error, S0, A0, S1, A1, S2, A2, S3, A3, S4, A4, S5, A5, S6, A6> CliSourceDecode<Value, Decoder, Error> for SumSource<((((((((), S0), S1), S2), S3), S4), S5), S6), Whole>
where Value: Sum<Alternatives = Sum7<A0, A1, A2, A3, A4, A5, A6>>, ((((((((), S0), S1), S2), S3), S4), S5), S6): CliSources<(A0, A1, A2, A3, A4, A5, A6)>, Decoder: CliWordsAlg, S0: CliSourceDecode<A0, Decoder, Error>, S1: CliSourceDecode<A1, Decoder, Error>, S2: CliSourceDecode<A2, Decoder, Error>, S3: CliSourceDecode<A3, Decoder, Error>, S4: CliSourceDecode<A4, Decoder, Error>, S5: CliSourceDecode<A5, Decoder, Error>, S6: CliSourceDecode<A6, Decoder, Error>,

Source§

fn cli_decode_source( &self, arguments: &mut &[ArgumentInfo], decoder: &Decoder, ) -> Result<Value, CliArgumentError<Error>>

Decodes the argument from the words decoder gives for the arguments this source was described as, taken from the front of arguments. Read more
Source§

impl<Value, Decoder, Error, S0, A0, S1, A1, S2, A2, S3, A3, S4, A4, S5, A5, S6, A6, S7, A7> CliSourceDecode<Value, Decoder, Error> for SumSource<(((((((((), S0), S1), S2), S3), S4), S5), S6), S7), Whole>
where Value: Sum<Alternatives = Sum8<A0, A1, A2, A3, A4, A5, A6, A7>>, (((((((((), S0), S1), S2), S3), S4), S5), S6), S7): CliSources<(A0, A1, A2, A3, A4, A5, A6, A7)>, Decoder: CliWordsAlg, S0: CliSourceDecode<A0, Decoder, Error>, S1: CliSourceDecode<A1, Decoder, Error>, S2: CliSourceDecode<A2, Decoder, Error>, S3: CliSourceDecode<A3, Decoder, Error>, S4: CliSourceDecode<A4, Decoder, Error>, S5: CliSourceDecode<A5, Decoder, Error>, S6: CliSourceDecode<A6, Decoder, Error>, S7: CliSourceDecode<A7, Decoder, Error>,

Source§

fn cli_decode_source( &self, arguments: &mut &[ArgumentInfo], decoder: &Decoder, ) -> Result<Value, CliArgumentError<Error>>

Decodes the argument from the words decoder gives for the arguments this source was described as, taken from the front of arguments. Read more
Source§

impl<Value, Decoder, Error, S0, A0, S1, A1, S2, A2, S3, A3, S4, A4, S5, A5, S6, A6, S7, A7, S8, A8> CliSourceDecode<Value, Decoder, Error> for SumSource<((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), Whole>
where Value: Sum<Alternatives = Sum9<A0, A1, A2, A3, A4, A5, A6, A7, A8>>, ((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8): CliSources<(A0, A1, A2, A3, A4, A5, A6, A7, A8)>, Decoder: CliWordsAlg, S0: CliSourceDecode<A0, Decoder, Error>, S1: CliSourceDecode<A1, Decoder, Error>, S2: CliSourceDecode<A2, Decoder, Error>, S3: CliSourceDecode<A3, Decoder, Error>, S4: CliSourceDecode<A4, Decoder, Error>, S5: CliSourceDecode<A5, Decoder, Error>, S6: CliSourceDecode<A6, Decoder, Error>, S7: CliSourceDecode<A7, Decoder, Error>, S8: CliSourceDecode<A8, Decoder, Error>,

Source§

fn cli_decode_source( &self, arguments: &mut &[ArgumentInfo], decoder: &Decoder, ) -> Result<Value, CliArgumentError<Error>>

Decodes the argument from the words decoder gives for the arguments this source was described as, taken from the front of arguments. Read more
Source§

impl<Value, Decoder, Error, S0, A0, S1, A1, S2, A2, S3, A3, S4, A4, S5, A5, S6, A6, S7, A7, S8, A8, S9, A9> CliSourceDecode<Value, Decoder, Error> for SumSource<(((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), Whole>
where Value: Sum<Alternatives = Sum10<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9>>, (((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9): CliSources<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9)>, Decoder: CliWordsAlg, S0: CliSourceDecode<A0, Decoder, Error>, S1: CliSourceDecode<A1, Decoder, Error>, S2: CliSourceDecode<A2, Decoder, Error>, S3: CliSourceDecode<A3, Decoder, Error>, S4: CliSourceDecode<A4, Decoder, Error>, S5: CliSourceDecode<A5, Decoder, Error>, S6: CliSourceDecode<A6, Decoder, Error>, S7: CliSourceDecode<A7, Decoder, Error>, S8: CliSourceDecode<A8, Decoder, Error>, S9: CliSourceDecode<A9, Decoder, Error>,

Source§

fn cli_decode_source( &self, arguments: &mut &[ArgumentInfo], decoder: &Decoder, ) -> Result<Value, CliArgumentError<Error>>

Decodes the argument from the words decoder gives for the arguments this source was described as, taken from the front of arguments. Read more
Source§

impl<Value, Decoder, Error, S0, A0, S1, A1, S2, A2, S3, A3, S4, A4, S5, A5, S6, A6, S7, A7, S8, A8, S9, A9, S10, A10> CliSourceDecode<Value, Decoder, Error> for SumSource<((((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), S10), Whole>
where Value: Sum<Alternatives = Sum11<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10>>, ((((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), S10): CliSources<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)>, Decoder: CliWordsAlg, S0: CliSourceDecode<A0, Decoder, Error>, S1: CliSourceDecode<A1, Decoder, Error>, S2: CliSourceDecode<A2, Decoder, Error>, S3: CliSourceDecode<A3, Decoder, Error>, S4: CliSourceDecode<A4, Decoder, Error>, S5: CliSourceDecode<A5, Decoder, Error>, S6: CliSourceDecode<A6, Decoder, Error>, S7: CliSourceDecode<A7, Decoder, Error>, S8: CliSourceDecode<A8, Decoder, Error>, S9: CliSourceDecode<A9, Decoder, Error>, S10: CliSourceDecode<A10, Decoder, Error>,

Source§

fn cli_decode_source( &self, arguments: &mut &[ArgumentInfo], decoder: &Decoder, ) -> Result<Value, CliArgumentError<Error>>

Decodes the argument from the words decoder gives for the arguments this source was described as, taken from the front of arguments. Read more
Source§

impl<Value, Decoder, Error, S0, A0, S1, A1, S2, A2, S3, A3, S4, A4, S5, A5, S6, A6, S7, A7, S8, A8, S9, A9, S10, A10, S11, A11> CliSourceDecode<Value, Decoder, Error> for SumSource<(((((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), S10), S11), Whole>
where Value: Sum<Alternatives = Sum12<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11>>, (((((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), S10), S11): CliSources<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11)>, Decoder: CliWordsAlg, S0: CliSourceDecode<A0, Decoder, Error>, S1: CliSourceDecode<A1, Decoder, Error>, S2: CliSourceDecode<A2, Decoder, Error>, S3: CliSourceDecode<A3, Decoder, Error>, S4: CliSourceDecode<A4, Decoder, Error>, S5: CliSourceDecode<A5, Decoder, Error>, S6: CliSourceDecode<A6, Decoder, Error>, S7: CliSourceDecode<A7, Decoder, Error>, S8: CliSourceDecode<A8, Decoder, Error>, S9: CliSourceDecode<A9, Decoder, Error>, S10: CliSourceDecode<A10, Decoder, Error>, S11: CliSourceDecode<A11, Decoder, Error>,

Source§

fn cli_decode_source( &self, arguments: &mut &[ArgumentInfo], decoder: &Decoder, ) -> Result<Value, CliArgumentError<Error>>

Decodes the argument from the words decoder gives for the arguments this source was described as, taken from the front of arguments. Read more
Source§

impl<Value, Decoder, Error, S0, A0, S1, A1, S2, A2, S3, A3, S4, A4, S5, A5, S6, A6, S7, A7, S8, A8, S9, A9, S10, A10, S11, A11, S12, A12> CliSourceDecode<Value, Decoder, Error> for SumSource<((((((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), S10), S11), S12), Whole>
where Value: Sum<Alternatives = Sum13<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12>>, ((((((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), S10), S11), S12): CliSources<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12)>, Decoder: CliWordsAlg, S0: CliSourceDecode<A0, Decoder, Error>, S1: CliSourceDecode<A1, Decoder, Error>, S2: CliSourceDecode<A2, Decoder, Error>, S3: CliSourceDecode<A3, Decoder, Error>, S4: CliSourceDecode<A4, Decoder, Error>, S5: CliSourceDecode<A5, Decoder, Error>, S6: CliSourceDecode<A6, Decoder, Error>, S7: CliSourceDecode<A7, Decoder, Error>, S8: CliSourceDecode<A8, Decoder, Error>, S9: CliSourceDecode<A9, Decoder, Error>, S10: CliSourceDecode<A10, Decoder, Error>, S11: CliSourceDecode<A11, Decoder, Error>, S12: CliSourceDecode<A12, Decoder, Error>,

Source§

fn cli_decode_source( &self, arguments: &mut &[ArgumentInfo], decoder: &Decoder, ) -> Result<Value, CliArgumentError<Error>>

Decodes the argument from the words decoder gives for the arguments this source was described as, taken from the front of arguments. Read more
Source§

impl<Value, Decoder, Error, S0, A0, S1, A1, S2, A2, S3, A3, S4, A4, S5, A5, S6, A6, S7, A7, S8, A8, S9, A9, S10, A10, S11, A11, S12, A12, S13, A13> CliSourceDecode<Value, Decoder, Error> for SumSource<(((((((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), S10), S11), S12), S13), Whole>
where Value: Sum<Alternatives = Sum14<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13>>, (((((((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), S10), S11), S12), S13): CliSources<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13)>, Decoder: CliWordsAlg, S0: CliSourceDecode<A0, Decoder, Error>, S1: CliSourceDecode<A1, Decoder, Error>, S2: CliSourceDecode<A2, Decoder, Error>, S3: CliSourceDecode<A3, Decoder, Error>, S4: CliSourceDecode<A4, Decoder, Error>, S5: CliSourceDecode<A5, Decoder, Error>, S6: CliSourceDecode<A6, Decoder, Error>, S7: CliSourceDecode<A7, Decoder, Error>, S8: CliSourceDecode<A8, Decoder, Error>, S9: CliSourceDecode<A9, Decoder, Error>, S10: CliSourceDecode<A10, Decoder, Error>, S11: CliSourceDecode<A11, Decoder, Error>, S12: CliSourceDecode<A12, Decoder, Error>, S13: CliSourceDecode<A13, Decoder, Error>,

Source§

fn cli_decode_source( &self, arguments: &mut &[ArgumentInfo], decoder: &Decoder, ) -> Result<Value, CliArgumentError<Error>>

Decodes the argument from the words decoder gives for the arguments this source was described as, taken from the front of arguments. Read more
Source§

impl<Value, Decoder, Error, S0, A0, S1, A1, S2, A2, S3, A3, S4, A4, S5, A5, S6, A6, S7, A7, S8, A8, S9, A9, S10, A10, S11, A11, S12, A12, S13, A13, S14, A14> CliSourceDecode<Value, Decoder, Error> for SumSource<((((((((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), S10), S11), S12), S13), S14), Whole>
where Value: Sum<Alternatives = Sum15<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14>>, ((((((((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), S10), S11), S12), S13), S14): CliSources<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14)>, Decoder: CliWordsAlg, S0: CliSourceDecode<A0, Decoder, Error>, S1: CliSourceDecode<A1, Decoder, Error>, S2: CliSourceDecode<A2, Decoder, Error>, S3: CliSourceDecode<A3, Decoder, Error>, S4: CliSourceDecode<A4, Decoder, Error>, S5: CliSourceDecode<A5, Decoder, Error>, S6: CliSourceDecode<A6, Decoder, Error>, S7: CliSourceDecode<A7, Decoder, Error>, S8: CliSourceDecode<A8, Decoder, Error>, S9: CliSourceDecode<A9, Decoder, Error>, S10: CliSourceDecode<A10, Decoder, Error>, S11: CliSourceDecode<A11, Decoder, Error>, S12: CliSourceDecode<A12, Decoder, Error>, S13: CliSourceDecode<A13, Decoder, Error>, S14: CliSourceDecode<A14, Decoder, Error>,

Source§

fn cli_decode_source( &self, arguments: &mut &[ArgumentInfo], decoder: &Decoder, ) -> Result<Value, CliArgumentError<Error>>

Decodes the argument from the words decoder gives for the arguments this source was described as, taken from the front of arguments. Read more
Source§

impl<Value, Decoder, Error, S0, A0, S1, A1, S2, A2, S3, A3, S4, A4, S5, A5, S6, A6, S7, A7, S8, A8, S9, A9, S10, A10, S11, A11, S12, A12, S13, A13, S14, A14, S15, A15> CliSourceDecode<Value, Decoder, Error> for SumSource<(((((((((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), S10), S11), S12), S13), S14), S15), Whole>
where Value: Sum<Alternatives = Sum16<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15>>, (((((((((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), S10), S11), S12), S13), S14), S15): CliSources<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15)>, Decoder: CliWordsAlg, S0: CliSourceDecode<A0, Decoder, Error>, S1: CliSourceDecode<A1, Decoder, Error>, S2: CliSourceDecode<A2, Decoder, Error>, S3: CliSourceDecode<A3, Decoder, Error>, S4: CliSourceDecode<A4, Decoder, Error>, S5: CliSourceDecode<A5, Decoder, Error>, S6: CliSourceDecode<A6, Decoder, Error>, S7: CliSourceDecode<A7, Decoder, Error>, S8: CliSourceDecode<A8, Decoder, Error>, S9: CliSourceDecode<A9, Decoder, Error>, S10: CliSourceDecode<A10, Decoder, Error>, S11: CliSourceDecode<A11, Decoder, Error>, S12: CliSourceDecode<A12, Decoder, Error>, S13: CliSourceDecode<A13, Decoder, Error>, S14: CliSourceDecode<A14, Decoder, Error>, S15: CliSourceDecode<A15, Decoder, Error>,

Source§

fn cli_decode_source( &self, arguments: &mut &[ArgumentInfo], decoder: &Decoder, ) -> Result<Value, CliArgumentError<Error>>

Decodes the argument from the words decoder gives for the arguments this source was described as, taken from the front of arguments. Read more
Source§

impl<Value, S0, A0, S1, A1> CliSourceFor<Option<Value>> for SumSource<(((), S0), S1), Optional>
where Value: Sum<Alternatives = Sum2<A0, A1>>, (((), S0), S1): CliSources<(A0, A1)> + CliNamedSources,

Source§

fn cli_describe( &self, name: &'static str, _: &mut usize, out: &mut Vec<ArgumentInfo>, )

Describes this source for the argument name into out, counting positional sources in positions. A compound source describes one argument per part.
Source§

impl<Value, S0, A0, S1, A1, S2, A2> CliSourceFor<Option<Value>> for SumSource<((((), S0), S1), S2), Optional>
where Value: Sum<Alternatives = Sum3<A0, A1, A2>>, ((((), S0), S1), S2): CliSources<(A0, A1, A2)> + CliNamedSources,

Source§

fn cli_describe( &self, name: &'static str, _: &mut usize, out: &mut Vec<ArgumentInfo>, )

Describes this source for the argument name into out, counting positional sources in positions. A compound source describes one argument per part.
Source§

impl<Value, S0, A0, S1, A1, S2, A2, S3, A3> CliSourceFor<Option<Value>> for SumSource<(((((), S0), S1), S2), S3), Optional>
where Value: Sum<Alternatives = Sum4<A0, A1, A2, A3>>, (((((), S0), S1), S2), S3): CliSources<(A0, A1, A2, A3)> + CliNamedSources,

Source§

fn cli_describe( &self, name: &'static str, _: &mut usize, out: &mut Vec<ArgumentInfo>, )

Describes this source for the argument name into out, counting positional sources in positions. A compound source describes one argument per part.
Source§

impl<Value, S0, A0, S1, A1, S2, A2, S3, A3, S4, A4> CliSourceFor<Option<Value>> for SumSource<((((((), S0), S1), S2), S3), S4), Optional>
where Value: Sum<Alternatives = Sum5<A0, A1, A2, A3, A4>>, ((((((), S0), S1), S2), S3), S4): CliSources<(A0, A1, A2, A3, A4)> + CliNamedSources,

Source§

fn cli_describe( &self, name: &'static str, _: &mut usize, out: &mut Vec<ArgumentInfo>, )

Describes this source for the argument name into out, counting positional sources in positions. A compound source describes one argument per part.
Source§

impl<Value, S0, A0, S1, A1, S2, A2, S3, A3, S4, A4, S5, A5> CliSourceFor<Option<Value>> for SumSource<(((((((), S0), S1), S2), S3), S4), S5), Optional>
where Value: Sum<Alternatives = Sum6<A0, A1, A2, A3, A4, A5>>, (((((((), S0), S1), S2), S3), S4), S5): CliSources<(A0, A1, A2, A3, A4, A5)> + CliNamedSources,

Source§

fn cli_describe( &self, name: &'static str, _: &mut usize, out: &mut Vec<ArgumentInfo>, )

Describes this source for the argument name into out, counting positional sources in positions. A compound source describes one argument per part.
Source§

impl<Value, S0, A0, S1, A1, S2, A2, S3, A3, S4, A4, S5, A5, S6, A6> CliSourceFor<Option<Value>> for SumSource<((((((((), S0), S1), S2), S3), S4), S5), S6), Optional>
where Value: Sum<Alternatives = Sum7<A0, A1, A2, A3, A4, A5, A6>>, ((((((((), S0), S1), S2), S3), S4), S5), S6): CliSources<(A0, A1, A2, A3, A4, A5, A6)> + CliNamedSources,

Source§

fn cli_describe( &self, name: &'static str, _: &mut usize, out: &mut Vec<ArgumentInfo>, )

Describes this source for the argument name into out, counting positional sources in positions. A compound source describes one argument per part.
Source§

impl<Value, S0, A0, S1, A1, S2, A2, S3, A3, S4, A4, S5, A5, S6, A6, S7, A7> CliSourceFor<Option<Value>> for SumSource<(((((((((), S0), S1), S2), S3), S4), S5), S6), S7), Optional>
where Value: Sum<Alternatives = Sum8<A0, A1, A2, A3, A4, A5, A6, A7>>, (((((((((), S0), S1), S2), S3), S4), S5), S6), S7): CliSources<(A0, A1, A2, A3, A4, A5, A6, A7)> + CliNamedSources,

Source§

fn cli_describe( &self, name: &'static str, _: &mut usize, out: &mut Vec<ArgumentInfo>, )

Describes this source for the argument name into out, counting positional sources in positions. A compound source describes one argument per part.
Source§

impl<Value, S0, A0, S1, A1, S2, A2, S3, A3, S4, A4, S5, A5, S6, A6, S7, A7, S8, A8> CliSourceFor<Option<Value>> for SumSource<((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), Optional>
where Value: Sum<Alternatives = Sum9<A0, A1, A2, A3, A4, A5, A6, A7, A8>>, ((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8): CliSources<(A0, A1, A2, A3, A4, A5, A6, A7, A8)> + CliNamedSources,

Source§

fn cli_describe( &self, name: &'static str, _: &mut usize, out: &mut Vec<ArgumentInfo>, )

Describes this source for the argument name into out, counting positional sources in positions. A compound source describes one argument per part.
Source§

impl<Value, S0, A0, S1, A1, S2, A2, S3, A3, S4, A4, S5, A5, S6, A6, S7, A7, S8, A8, S9, A9> CliSourceFor<Option<Value>> for SumSource<(((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), Optional>
where Value: Sum<Alternatives = Sum10<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9>>, (((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9): CliSources<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9)> + CliNamedSources,

Source§

fn cli_describe( &self, name: &'static str, _: &mut usize, out: &mut Vec<ArgumentInfo>, )

Describes this source for the argument name into out, counting positional sources in positions. A compound source describes one argument per part.
Source§

impl<Value, S0, A0, S1, A1, S2, A2, S3, A3, S4, A4, S5, A5, S6, A6, S7, A7, S8, A8, S9, A9, S10, A10> CliSourceFor<Option<Value>> for SumSource<((((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), S10), Optional>
where Value: Sum<Alternatives = Sum11<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10>>, ((((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), S10): CliSources<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)> + CliNamedSources,

Source§

fn cli_describe( &self, name: &'static str, _: &mut usize, out: &mut Vec<ArgumentInfo>, )

Describes this source for the argument name into out, counting positional sources in positions. A compound source describes one argument per part.
Source§

impl<Value, S0, A0, S1, A1, S2, A2, S3, A3, S4, A4, S5, A5, S6, A6, S7, A7, S8, A8, S9, A9, S10, A10, S11, A11> CliSourceFor<Option<Value>> for SumSource<(((((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), S10), S11), Optional>
where Value: Sum<Alternatives = Sum12<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11>>, (((((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), S10), S11): CliSources<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11)> + CliNamedSources,

Source§

fn cli_describe( &self, name: &'static str, _: &mut usize, out: &mut Vec<ArgumentInfo>, )

Describes this source for the argument name into out, counting positional sources in positions. A compound source describes one argument per part.
Source§

impl<Value, S0, A0, S1, A1, S2, A2, S3, A3, S4, A4, S5, A5, S6, A6, S7, A7, S8, A8, S9, A9, S10, A10, S11, A11, S12, A12> CliSourceFor<Option<Value>> for SumSource<((((((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), S10), S11), S12), Optional>
where Value: Sum<Alternatives = Sum13<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12>>, ((((((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), S10), S11), S12): CliSources<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12)> + CliNamedSources,

Source§

fn cli_describe( &self, name: &'static str, _: &mut usize, out: &mut Vec<ArgumentInfo>, )

Describes this source for the argument name into out, counting positional sources in positions. A compound source describes one argument per part.
Source§

impl<Value, S0, A0, S1, A1, S2, A2, S3, A3, S4, A4, S5, A5, S6, A6, S7, A7, S8, A8, S9, A9, S10, A10, S11, A11, S12, A12, S13, A13> CliSourceFor<Option<Value>> for SumSource<(((((((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), S10), S11), S12), S13), Optional>
where Value: Sum<Alternatives = Sum14<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13>>, (((((((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), S10), S11), S12), S13): CliSources<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13)> + CliNamedSources,

Source§

fn cli_describe( &self, name: &'static str, _: &mut usize, out: &mut Vec<ArgumentInfo>, )

Describes this source for the argument name into out, counting positional sources in positions. A compound source describes one argument per part.
Source§

impl<Value, S0, A0, S1, A1, S2, A2, S3, A3, S4, A4, S5, A5, S6, A6, S7, A7, S8, A8, S9, A9, S10, A10, S11, A11, S12, A12, S13, A13, S14, A14> CliSourceFor<Option<Value>> for SumSource<((((((((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), S10), S11), S12), S13), S14), Optional>
where Value: Sum<Alternatives = Sum15<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14>>, ((((((((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), S10), S11), S12), S13), S14): CliSources<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14)> + CliNamedSources,

Source§

fn cli_describe( &self, name: &'static str, _: &mut usize, out: &mut Vec<ArgumentInfo>, )

Describes this source for the argument name into out, counting positional sources in positions. A compound source describes one argument per part.
Source§

impl<Value, S0, A0, S1, A1, S2, A2, S3, A3, S4, A4, S5, A5, S6, A6, S7, A7, S8, A8, S9, A9, S10, A10, S11, A11, S12, A12, S13, A13, S14, A14, S15, A15> CliSourceFor<Option<Value>> for SumSource<(((((((((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), S10), S11), S12), S13), S14), S15), Optional>
where Value: Sum<Alternatives = Sum16<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15>>, (((((((((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), S10), S11), S12), S13), S14), S15): CliSources<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15)> + CliNamedSources,

Source§

fn cli_describe( &self, name: &'static str, _: &mut usize, out: &mut Vec<ArgumentInfo>, )

Describes this source for the argument name into out, counting positional sources in positions. A compound source describes one argument per part.
Source§

impl<Value, S0, A0, S1, A1> CliSourceFor<Value> for SumSource<(((), S0), S1), Whole>
where Value: Sum<Alternatives = Sum2<A0, A1>>, (((), S0), S1): CliSources<(A0, A1)> + CliNamedSources,

Source§

fn cli_describe( &self, name: &'static str, _: &mut usize, out: &mut Vec<ArgumentInfo>, )

Describes this source for the argument name into out, counting positional sources in positions. A compound source describes one argument per part.
Source§

impl<Value, S0, A0, S1, A1, S2, A2> CliSourceFor<Value> for SumSource<((((), S0), S1), S2), Whole>
where Value: Sum<Alternatives = Sum3<A0, A1, A2>>, ((((), S0), S1), S2): CliSources<(A0, A1, A2)> + CliNamedSources,

Source§

fn cli_describe( &self, name: &'static str, _: &mut usize, out: &mut Vec<ArgumentInfo>, )

Describes this source for the argument name into out, counting positional sources in positions. A compound source describes one argument per part.
Source§

impl<Value, S0, A0, S1, A1, S2, A2, S3, A3> CliSourceFor<Value> for SumSource<(((((), S0), S1), S2), S3), Whole>
where Value: Sum<Alternatives = Sum4<A0, A1, A2, A3>>, (((((), S0), S1), S2), S3): CliSources<(A0, A1, A2, A3)> + CliNamedSources,

Source§

fn cli_describe( &self, name: &'static str, _: &mut usize, out: &mut Vec<ArgumentInfo>, )

Describes this source for the argument name into out, counting positional sources in positions. A compound source describes one argument per part.
Source§

impl<Value, S0, A0, S1, A1, S2, A2, S3, A3, S4, A4> CliSourceFor<Value> for SumSource<((((((), S0), S1), S2), S3), S4), Whole>
where Value: Sum<Alternatives = Sum5<A0, A1, A2, A3, A4>>, ((((((), S0), S1), S2), S3), S4): CliSources<(A0, A1, A2, A3, A4)> + CliNamedSources,

Source§

fn cli_describe( &self, name: &'static str, _: &mut usize, out: &mut Vec<ArgumentInfo>, )

Describes this source for the argument name into out, counting positional sources in positions. A compound source describes one argument per part.
Source§

impl<Value, S0, A0, S1, A1, S2, A2, S3, A3, S4, A4, S5, A5> CliSourceFor<Value> for SumSource<(((((((), S0), S1), S2), S3), S4), S5), Whole>
where Value: Sum<Alternatives = Sum6<A0, A1, A2, A3, A4, A5>>, (((((((), S0), S1), S2), S3), S4), S5): CliSources<(A0, A1, A2, A3, A4, A5)> + CliNamedSources,

Source§

fn cli_describe( &self, name: &'static str, _: &mut usize, out: &mut Vec<ArgumentInfo>, )

Describes this source for the argument name into out, counting positional sources in positions. A compound source describes one argument per part.
Source§

impl<Value, S0, A0, S1, A1, S2, A2, S3, A3, S4, A4, S5, A5, S6, A6> CliSourceFor<Value> for SumSource<((((((((), S0), S1), S2), S3), S4), S5), S6), Whole>
where Value: Sum<Alternatives = Sum7<A0, A1, A2, A3, A4, A5, A6>>, ((((((((), S0), S1), S2), S3), S4), S5), S6): CliSources<(A0, A1, A2, A3, A4, A5, A6)> + CliNamedSources,

Source§

fn cli_describe( &self, name: &'static str, _: &mut usize, out: &mut Vec<ArgumentInfo>, )

Describes this source for the argument name into out, counting positional sources in positions. A compound source describes one argument per part.
Source§

impl<Value, S0, A0, S1, A1, S2, A2, S3, A3, S4, A4, S5, A5, S6, A6, S7, A7> CliSourceFor<Value> for SumSource<(((((((((), S0), S1), S2), S3), S4), S5), S6), S7), Whole>
where Value: Sum<Alternatives = Sum8<A0, A1, A2, A3, A4, A5, A6, A7>>, (((((((((), S0), S1), S2), S3), S4), S5), S6), S7): CliSources<(A0, A1, A2, A3, A4, A5, A6, A7)> + CliNamedSources,

Source§

fn cli_describe( &self, name: &'static str, _: &mut usize, out: &mut Vec<ArgumentInfo>, )

Describes this source for the argument name into out, counting positional sources in positions. A compound source describes one argument per part.
Source§

impl<Value, S0, A0, S1, A1, S2, A2, S3, A3, S4, A4, S5, A5, S6, A6, S7, A7, S8, A8> CliSourceFor<Value> for SumSource<((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), Whole>
where Value: Sum<Alternatives = Sum9<A0, A1, A2, A3, A4, A5, A6, A7, A8>>, ((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8): CliSources<(A0, A1, A2, A3, A4, A5, A6, A7, A8)> + CliNamedSources,

Source§

fn cli_describe( &self, name: &'static str, _: &mut usize, out: &mut Vec<ArgumentInfo>, )

Describes this source for the argument name into out, counting positional sources in positions. A compound source describes one argument per part.
Source§

impl<Value, S0, A0, S1, A1, S2, A2, S3, A3, S4, A4, S5, A5, S6, A6, S7, A7, S8, A8, S9, A9> CliSourceFor<Value> for SumSource<(((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), Whole>
where Value: Sum<Alternatives = Sum10<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9>>, (((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9): CliSources<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9)> + CliNamedSources,

Source§

fn cli_describe( &self, name: &'static str, _: &mut usize, out: &mut Vec<ArgumentInfo>, )

Describes this source for the argument name into out, counting positional sources in positions. A compound source describes one argument per part.
Source§

impl<Value, S0, A0, S1, A1, S2, A2, S3, A3, S4, A4, S5, A5, S6, A6, S7, A7, S8, A8, S9, A9, S10, A10> CliSourceFor<Value> for SumSource<((((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), S10), Whole>
where Value: Sum<Alternatives = Sum11<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10>>, ((((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), S10): CliSources<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10)> + CliNamedSources,

Source§

fn cli_describe( &self, name: &'static str, _: &mut usize, out: &mut Vec<ArgumentInfo>, )

Describes this source for the argument name into out, counting positional sources in positions. A compound source describes one argument per part.
Source§

impl<Value, S0, A0, S1, A1, S2, A2, S3, A3, S4, A4, S5, A5, S6, A6, S7, A7, S8, A8, S9, A9, S10, A10, S11, A11> CliSourceFor<Value> for SumSource<(((((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), S10), S11), Whole>
where Value: Sum<Alternatives = Sum12<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11>>, (((((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), S10), S11): CliSources<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11)> + CliNamedSources,

Source§

fn cli_describe( &self, name: &'static str, _: &mut usize, out: &mut Vec<ArgumentInfo>, )

Describes this source for the argument name into out, counting positional sources in positions. A compound source describes one argument per part.
Source§

impl<Value, S0, A0, S1, A1, S2, A2, S3, A3, S4, A4, S5, A5, S6, A6, S7, A7, S8, A8, S9, A9, S10, A10, S11, A11, S12, A12> CliSourceFor<Value> for SumSource<((((((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), S10), S11), S12), Whole>
where Value: Sum<Alternatives = Sum13<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12>>, ((((((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), S10), S11), S12): CliSources<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12)> + CliNamedSources,

Source§

fn cli_describe( &self, name: &'static str, _: &mut usize, out: &mut Vec<ArgumentInfo>, )

Describes this source for the argument name into out, counting positional sources in positions. A compound source describes one argument per part.
Source§

impl<Value, S0, A0, S1, A1, S2, A2, S3, A3, S4, A4, S5, A5, S6, A6, S7, A7, S8, A8, S9, A9, S10, A10, S11, A11, S12, A12, S13, A13> CliSourceFor<Value> for SumSource<(((((((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), S10), S11), S12), S13), Whole>
where Value: Sum<Alternatives = Sum14<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13>>, (((((((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), S10), S11), S12), S13): CliSources<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13)> + CliNamedSources,

Source§

fn cli_describe( &self, name: &'static str, _: &mut usize, out: &mut Vec<ArgumentInfo>, )

Describes this source for the argument name into out, counting positional sources in positions. A compound source describes one argument per part.
Source§

impl<Value, S0, A0, S1, A1, S2, A2, S3, A3, S4, A4, S5, A5, S6, A6, S7, A7, S8, A8, S9, A9, S10, A10, S11, A11, S12, A12, S13, A13, S14, A14> CliSourceFor<Value> for SumSource<((((((((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), S10), S11), S12), S13), S14), Whole>
where Value: Sum<Alternatives = Sum15<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14>>, ((((((((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), S10), S11), S12), S13), S14): CliSources<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14)> + CliNamedSources,

Source§

fn cli_describe( &self, name: &'static str, _: &mut usize, out: &mut Vec<ArgumentInfo>, )

Describes this source for the argument name into out, counting positional sources in positions. A compound source describes one argument per part.
Source§

impl<Value, S0, A0, S1, A1, S2, A2, S3, A3, S4, A4, S5, A5, S6, A6, S7, A7, S8, A8, S9, A9, S10, A10, S11, A11, S12, A12, S13, A13, S14, A14, S15, A15> CliSourceFor<Value> for SumSource<(((((((((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), S10), S11), S12), S13), S14), S15), Whole>
where Value: Sum<Alternatives = Sum16<A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15>>, (((((((((((((((((), S0), S1), S2), S3), S4), S5), S6), S7), S8), S9), S10), S11), S12), S13), S14), S15): CliSources<(A0, A1, A2, A3, A4, A5, A6, A7, A8, A9, A10, A11, A12, A13, A14, A15)> + CliNamedSources,

Source§

fn cli_describe( &self, name: &'static str, _: &mut usize, out: &mut Vec<ArgumentInfo>, )

Describes this source for the argument name into out, counting positional sources in positions. A compound source describes one argument per part.
Source§

impl<Alternatives: Clone, Presence: Clone> Clone for SumSource<Alternatives, Presence>

Source§

fn clone(&self) -> Self

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<Alternatives: Copy, Presence: Copy> Copy for SumSource<Alternatives, Presence>

Source§

impl<Alternatives: Debug, Presence: Debug> Debug for SumSource<Alternatives, Presence>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for SumSource<()>

Source§

fn default() -> Self

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl<Alternatives, Presence> Freeze for SumSource<Alternatives, Presence>
where Alternatives: Freeze, PhantomData<Presence>: Freeze,

§

impl<Alternatives, Presence> RefUnwindSafe for SumSource<Alternatives, Presence>
where Alternatives: RefUnwindSafe, PhantomData<Presence>: RefUnwindSafe,

§

impl<Alternatives, Presence> Send for SumSource<Alternatives, Presence>
where Alternatives: Send, PhantomData<Presence>: Send,

§

impl<Alternatives, Presence> Sync for SumSource<Alternatives, Presence>
where Alternatives: Sync, PhantomData<Presence>: Sync,

§

impl<Alternatives, Presence> Unpin for SumSource<Alternatives, Presence>
where Alternatives: Unpin, PhantomData<Presence>: Unpin,

§

impl<Alternatives, Presence> UnsafeUnpin for SumSource<Alternatives, Presence>
where Alternatives: UnsafeUnpin, PhantomData<Presence>: UnsafeUnpin,

§

impl<Alternatives, Presence> UnwindSafe for SumSource<Alternatives, Presence>
where Alternatives: UnwindSafe, PhantomData<Presence>: UnwindSafe,

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<This> CliDeclarationLawsExt<This> for This

Source§

fn law_cli_declaration<Operation, Sources, Mode, Commands>( &self, name: &'static str, operation: Operation, sources: Sources, mode: Mode, conventions: Conventions, ) -> Result<(), &'static str>
where This: CliOperationAlg<Operation, Sources, Mode, Commands = Commands> + CliCommandsObserved<Commands = Commands>, Operation: OperationAlg, Sources: CliSources<<Operation as OperationAlg>::Args>,

Checks that operation declared under name with sources describes exactly that, with one argument per operation argument, in order, and distinct spellings and positions.

Source§

impl<This> CliOutcomeLawsExt<This> for This

Source§

fn law_cli_outcome<Output>(&self, output: Output) -> Result<(), &'static str>
where This: CliOutcomeOf<Output>, <This as CliOutcomeOf<Output>>::Error: CliFailureAlg,

Checks that output read under this mode exits with zero exactly when it succeeds.

Source§

impl<Source> CliPartsFor<ContextArg> for Source

Source§

const PARTS: &'static [&'static str] = const PARTS: &'static [&'static str] = &[];

The argument’s part names, in order.
Source§

const PART: &'static str = const PART: &'static str = "part";

What one part is called: field or alternative.
Source§

const WHOLE: &'static str = const WHOLE: &'static str = "argument";

What the whole is called: product or sum.
Source§

impl<This> CliProgramExt<This> for This

Source§

fn compile_cli<Program>( &self, program: Program, ) -> <Program as CliProgramAlg<This>>::Commands
where Program: CliProgramAlg<This>,

Compiles a named CLI program with this interpreter.

Source§

impl<Source, Args, const INDEX: usize> CliSourceAt<Args, INDEX> for Source
where Args: CliArgAt<INDEX>, Source: CliSourceFor<<Args as CliArgAt<INDEX>>::Arg>,

Source§

impl<Source> CliStatedFor<ContextArg> for Source

Source§

impl<Source, Arg> CliStatedFor<StatedArg<Arg>> for Source
where Source: CliSourceFor<Arg>,

Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<This> ShapeProgramExt<This> for This

Source§

fn compile_shape<Program>( &self, program: Program, ) -> <Program as ShapeProgramAlg<This>>::Ty
where Program: ShapeProgramAlg<This>,

Folds a declaration with this interpretation.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.