pub struct Matches<'i, const N: usize>(pub [&'i [u8]; N], pub &'i [u8]);Expand description
A container of matched slices. Also stores the remaining input
Tuple Fields§
§0: [&'i [u8]; N]A list of all the matched slices.
1: &'i [u8]What is left of the input
Implementations§
source§impl<'i, const N: usize> Matches<'i, N>
impl<'i, const N: usize> Matches<'i, N>
sourcepub fn ignore(self, p: impl Pattern) -> Option<Matches<'i, N>>
pub fn ignore(self, p: impl Pattern) -> Option<Matches<'i, N>>
Tests the pattern p against the remaining input in self and returns a new
Match struct if p matches.
The array of matched slices in the returned struct is identical to that in self.
This has the effect of ignoring the value matched by p
source§impl<'i> Matches<'i, 0>
impl<'i> Matches<'i, 0>
sourcepub fn pattern(self, p: impl Pattern) -> Option<Matches<'i, 1>>
pub fn pattern(self, p: impl Pattern) -> Option<Matches<'i, 1>>
Tests the pattern p against the remaining input in self and returns a new
Match struct if p matches.
The array of matched slices in the returned struct will have an additional element
corresponding to the value matched by p
This method is implemented for up to 20 elements
source§impl<'i> Matches<'i, 1>
impl<'i> Matches<'i, 1>
sourcepub fn pattern(self, p: impl Pattern) -> Option<Matches<'i, 2>>
pub fn pattern(self, p: impl Pattern) -> Option<Matches<'i, 2>>
Tests the pattern p against the remaining input in self and returns a new
Match struct if p matches.
The array of matched slices in the returned struct will have an additional element
corresponding to the value matched by p
This method is implemented for up to 20 elements
source§impl<'i> Matches<'i, 2>
impl<'i> Matches<'i, 2>
sourcepub fn pattern(self, p: impl Pattern) -> Option<Matches<'i, 3>>
pub fn pattern(self, p: impl Pattern) -> Option<Matches<'i, 3>>
Tests the pattern p against the remaining input in self and returns a new
Match struct if p matches.
The array of matched slices in the returned struct will have an additional element
corresponding to the value matched by p
This method is implemented for up to 20 elements
source§impl<'i> Matches<'i, 3>
impl<'i> Matches<'i, 3>
sourcepub fn pattern(self, p: impl Pattern) -> Option<Matches<'i, 4>>
pub fn pattern(self, p: impl Pattern) -> Option<Matches<'i, 4>>
Tests the pattern p against the remaining input in self and returns a new
Match struct if p matches.
The array of matched slices in the returned struct will have an additional element
corresponding to the value matched by p
This method is implemented for up to 20 elements
source§impl<'i> Matches<'i, 4>
impl<'i> Matches<'i, 4>
sourcepub fn pattern(self, p: impl Pattern) -> Option<Matches<'i, 5>>
pub fn pattern(self, p: impl Pattern) -> Option<Matches<'i, 5>>
Tests the pattern p against the remaining input in self and returns a new
Match struct if p matches.
The array of matched slices in the returned struct will have an additional element
corresponding to the value matched by p
This method is implemented for up to 20 elements
source§impl<'i> Matches<'i, 5>
impl<'i> Matches<'i, 5>
sourcepub fn pattern(self, p: impl Pattern) -> Option<Matches<'i, 6>>
pub fn pattern(self, p: impl Pattern) -> Option<Matches<'i, 6>>
Tests the pattern p against the remaining input in self and returns a new
Match struct if p matches.
The array of matched slices in the returned struct will have an additional element
corresponding to the value matched by p
This method is implemented for up to 20 elements
source§impl<'i> Matches<'i, 6>
impl<'i> Matches<'i, 6>
sourcepub fn pattern(self, p: impl Pattern) -> Option<Matches<'i, 7>>
pub fn pattern(self, p: impl Pattern) -> Option<Matches<'i, 7>>
Tests the pattern p against the remaining input in self and returns a new
Match struct if p matches.
The array of matched slices in the returned struct will have an additional element
corresponding to the value matched by p
This method is implemented for up to 20 elements
source§impl<'i> Matches<'i, 7>
impl<'i> Matches<'i, 7>
sourcepub fn pattern(self, p: impl Pattern) -> Option<Matches<'i, 8>>
pub fn pattern(self, p: impl Pattern) -> Option<Matches<'i, 8>>
Tests the pattern p against the remaining input in self and returns a new
Match struct if p matches.
The array of matched slices in the returned struct will have an additional element
corresponding to the value matched by p
This method is implemented for up to 20 elements
source§impl<'i> Matches<'i, 8>
impl<'i> Matches<'i, 8>
sourcepub fn pattern(self, p: impl Pattern) -> Option<Matches<'i, 9>>
pub fn pattern(self, p: impl Pattern) -> Option<Matches<'i, 9>>
Tests the pattern p against the remaining input in self and returns a new
Match struct if p matches.
The array of matched slices in the returned struct will have an additional element
corresponding to the value matched by p
This method is implemented for up to 20 elements
source§impl<'i> Matches<'i, 9>
impl<'i> Matches<'i, 9>
sourcepub fn pattern(self, p: impl Pattern) -> Option<Matches<'i, 10>>
pub fn pattern(self, p: impl Pattern) -> Option<Matches<'i, 10>>
Tests the pattern p against the remaining input in self and returns a new
Match struct if p matches.
The array of matched slices in the returned struct will have an additional element
corresponding to the value matched by p
This method is implemented for up to 20 elements
source§impl<'i> Matches<'i, 10>
impl<'i> Matches<'i, 10>
sourcepub fn pattern(self, p: impl Pattern) -> Option<Matches<'i, 11>>
pub fn pattern(self, p: impl Pattern) -> Option<Matches<'i, 11>>
Tests the pattern p against the remaining input in self and returns a new
Match struct if p matches.
The array of matched slices in the returned struct will have an additional element
corresponding to the value matched by p
This method is implemented for up to 20 elements
source§impl<'i> Matches<'i, 11>
impl<'i> Matches<'i, 11>
sourcepub fn pattern(self, p: impl Pattern) -> Option<Matches<'i, 12>>
pub fn pattern(self, p: impl Pattern) -> Option<Matches<'i, 12>>
Tests the pattern p against the remaining input in self and returns a new
Match struct if p matches.
The array of matched slices in the returned struct will have an additional element
corresponding to the value matched by p
This method is implemented for up to 20 elements
source§impl<'i> Matches<'i, 12>
impl<'i> Matches<'i, 12>
sourcepub fn pattern(self, p: impl Pattern) -> Option<Matches<'i, 13>>
pub fn pattern(self, p: impl Pattern) -> Option<Matches<'i, 13>>
Tests the pattern p against the remaining input in self and returns a new
Match struct if p matches.
The array of matched slices in the returned struct will have an additional element
corresponding to the value matched by p
This method is implemented for up to 20 elements
source§impl<'i> Matches<'i, 13>
impl<'i> Matches<'i, 13>
sourcepub fn pattern(self, p: impl Pattern) -> Option<Matches<'i, 14>>
pub fn pattern(self, p: impl Pattern) -> Option<Matches<'i, 14>>
Tests the pattern p against the remaining input in self and returns a new
Match struct if p matches.
The array of matched slices in the returned struct will have an additional element
corresponding to the value matched by p
This method is implemented for up to 20 elements
source§impl<'i> Matches<'i, 14>
impl<'i> Matches<'i, 14>
sourcepub fn pattern(self, p: impl Pattern) -> Option<Matches<'i, 15>>
pub fn pattern(self, p: impl Pattern) -> Option<Matches<'i, 15>>
Tests the pattern p against the remaining input in self and returns a new
Match struct if p matches.
The array of matched slices in the returned struct will have an additional element
corresponding to the value matched by p
This method is implemented for up to 20 elements
source§impl<'i> Matches<'i, 15>
impl<'i> Matches<'i, 15>
sourcepub fn pattern(self, p: impl Pattern) -> Option<Matches<'i, 16>>
pub fn pattern(self, p: impl Pattern) -> Option<Matches<'i, 16>>
Tests the pattern p against the remaining input in self and returns a new
Match struct if p matches.
The array of matched slices in the returned struct will have an additional element
corresponding to the value matched by p
This method is implemented for up to 20 elements
source§impl<'i> Matches<'i, 16>
impl<'i> Matches<'i, 16>
sourcepub fn pattern(self, p: impl Pattern) -> Option<Matches<'i, 17>>
pub fn pattern(self, p: impl Pattern) -> Option<Matches<'i, 17>>
Tests the pattern p against the remaining input in self and returns a new
Match struct if p matches.
The array of matched slices in the returned struct will have an additional element
corresponding to the value matched by p
This method is implemented for up to 20 elements
source§impl<'i> Matches<'i, 17>
impl<'i> Matches<'i, 17>
sourcepub fn pattern(self, p: impl Pattern) -> Option<Matches<'i, 18>>
pub fn pattern(self, p: impl Pattern) -> Option<Matches<'i, 18>>
Tests the pattern p against the remaining input in self and returns a new
Match struct if p matches.
The array of matched slices in the returned struct will have an additional element
corresponding to the value matched by p
This method is implemented for up to 20 elements
source§impl<'i> Matches<'i, 18>
impl<'i> Matches<'i, 18>
sourcepub fn pattern(self, p: impl Pattern) -> Option<Matches<'i, 19>>
pub fn pattern(self, p: impl Pattern) -> Option<Matches<'i, 19>>
Tests the pattern p against the remaining input in self and returns a new
Match struct if p matches.
The array of matched slices in the returned struct will have an additional element
corresponding to the value matched by p
This method is implemented for up to 20 elements
source§impl<'i> Matches<'i, 19>
impl<'i> Matches<'i, 19>
sourcepub fn pattern(self, p: impl Pattern) -> Option<Matches<'i, 20>>
pub fn pattern(self, p: impl Pattern) -> Option<Matches<'i, 20>>
Tests the pattern p against the remaining input in self and returns a new
Match struct if p matches.
The array of matched slices in the returned struct will have an additional element
corresponding to the value matched by p
This method is implemented for up to 20 elements