pub enum InvalidRepeatCount {
NotPositive,
TooLarge,
}Expand description
The two ways RepeatCount::new fails.
Variants§
NotPositive
Zero or negative: a group of no sections parses nothing.
TooLarge
Larger than a u32, which is what the plan node holds.
Trait Implementations§
Source§impl Clone for InvalidRepeatCount
impl Clone for InvalidRepeatCount
Source§fn clone(&self) -> InvalidRepeatCount
fn clone(&self) -> InvalidRepeatCount
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for InvalidRepeatCount
Source§impl Debug for InvalidRepeatCount
impl Debug for InvalidRepeatCount
Source§impl Display for InvalidRepeatCount
impl Display for InvalidRepeatCount
impl Eq for InvalidRepeatCount
Source§impl Error for InvalidRepeatCount
impl Error for InvalidRepeatCount
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl PartialEq for InvalidRepeatCount
impl PartialEq for InvalidRepeatCount
impl StructuralPartialEq for InvalidRepeatCount
Auto Trait Implementations§
impl Freeze for InvalidRepeatCount
impl RefUnwindSafe for InvalidRepeatCount
impl Send for InvalidRepeatCount
impl Sync for InvalidRepeatCount
impl Unpin for InvalidRepeatCount
impl UnsafeUnpin for InvalidRepeatCount
impl UnwindSafe for InvalidRepeatCount
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