pub struct Repeat {
pub min: u64,
pub max: Option<u64>,
}Expand description
Repetition bounds, inclusive on both ends.
max of None is unbounded. A sentinel is deliberately avoided: *18446744073709551615 is
a legal bound and would collide with one.
Fields§
§min: u64Lower bound.
max: Option<u64>Upper bound, or None for unbounded.
Implementations§
Trait Implementations§
impl Copy for Repeat
impl Eq for Repeat
impl StructuralPartialEq for Repeat
Auto Trait Implementations§
impl Freeze for Repeat
impl RefUnwindSafe for Repeat
impl Send for Repeat
impl Sync for Repeat
impl Unpin for Repeat
impl UnsafeUnpin for Repeat
impl UnwindSafe for Repeat
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