Struct pcomb::parse::Match[][src]

pub struct Match<T: Slice + Eq>(pub T);
Expand description

Accepts the slice if the input matches the specified sliced.

Tuple Fields

0: T

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Feeds this value into the given Hasher. Read more

Feeds a slice of this type into the given Hasher. Read more

Try to parse part of a slice, returning a tuple of the remainder (the unparsed slice) and the output value. Read more

Maps the output of a parser with a function to produce a new output. Read more

Maps the error of a parser with a function to produce a new error.

Executes the parser if possible, wrapping up the output in an Option. Read more

Parses the output of this parser with an inner parser, and passes the output through. Read more

Takes the union of both combinators, accepting input which passes either parser. Both parsers must output the same type. Read more

Takes the conjunction of both combinators, accepting input which passes both parsers. The remainders of both combinators must be equal, otherwise the specified length error is yielded. Read more

Accepts input which passes this parser first and then other, packing the output as a tuple. The remainder of the input is passed to other. Read more

Accepts input which passes this parser first and then other, extending this output with other’s output. The remainder of the input is passed to other. Read more

Accepts exactly a constant amount of repetitions of this parser, packing the output as a constant array. Read more

Accepts any amount of repetitions of this parser, extending the output into the given collection. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

🔬 This is a nightly-only experimental API. (toowned_clone_into)

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.