[−][src]Struct cfg::sequence::Sequence
Sequence rule representation.
Fields
lhs: Symbol
The rule's left-hand side.
rhs: Symbol
The rule's right-hand side.
start: u32
The minimum number of repetitions.
end: Option<u32>
Either the inclusive maximum number of repetitions, or None
if the number of repetitions
is unlimited.
separator: Separator
The way elements are separated in a sequence, or Null
.
history: H
The history carried with the sequence rule.
Methods
impl<H> Sequence<H>
[src]
pub fn inclusive(self, start: u32, end: Option<u32>) -> Self
[src]
Assigns the inclusive range of the number of repetitions.
pub fn separator(self, sep: Separator) -> Self
[src]
Assigns the separator symbol and mode of separation.
Trait Implementations
impl<H: Clone> Clone for Sequence<H>
[src]
impl<H: Eq> Eq for Sequence<H>
[src]
impl<H: PartialEq> PartialEq<Sequence<H>> for Sequence<H>
[src]
impl<H: Debug> Debug for Sequence<H>
[src]
impl<H: Hash> Hash for Sequence<H>
[src]
fn hash<__H: Hasher>(&self, state: &mut __H)
[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher,
1.3.0[src]
H: Hasher,
impl<H> StructuralPartialEq for Sequence<H>
[src]
impl<H> StructuralEq for Sequence<H>
[src]
Auto Trait Implementations
impl<H> Send for Sequence<H> where
H: Send,
H: Send,
impl<H> Sync for Sequence<H> where
H: Sync,
H: Sync,
impl<H> Unpin for Sequence<H> where
H: Unpin,
H: Unpin,
impl<H> UnwindSafe for Sequence<H> where
H: UnwindSafe,
H: UnwindSafe,
impl<H> RefUnwindSafe for Sequence<H> where
H: RefUnwindSafe,
H: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,