pub struct RepeatRange {
pub min: usize,
pub max: usize,
}Expand description
Specifies the bounds for how many times the target rule in a Rule::Repeat can be repeated.
Fields§
§min: usizeThe target rule must be repeated at least this many times.
max: usizeThe target rule can be repeated at most this many times.
Trait Implementations§
Source§impl Clone for RepeatRange
impl Clone for RepeatRange
Source§fn clone(&self) -> RepeatRange
fn clone(&self) -> RepeatRange
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for RepeatRange
impl Debug for RepeatRange
Source§impl From<RangeInclusive<usize>> for RepeatRange
impl From<RangeInclusive<usize>> for RepeatRange
Source§fn from(source: RangeInclusive<usize>) -> Self
fn from(source: RangeInclusive<usize>) -> Self
Converts to this type from the input type.
Source§impl From<RangeToInclusive<usize>> for RepeatRange
impl From<RangeToInclusive<usize>> for RepeatRange
Source§fn from(source: RangeToInclusive<usize>) -> Self
fn from(source: RangeToInclusive<usize>) -> Self
Converts to this type from the input type.
Source§impl From<usize> for RepeatRange
impl From<usize> for RepeatRange
Source§impl PartialEq for RepeatRange
impl PartialEq for RepeatRange
impl Eq for RepeatRange
impl StructuralPartialEq for RepeatRange
Auto Trait Implementations§
impl Freeze for RepeatRange
impl RefUnwindSafe for RepeatRange
impl Send for RepeatRange
impl Sync for RepeatRange
impl Unpin for RepeatRange
impl UnwindSafe for RepeatRange
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more