#[non_exhaustive]pub enum GeneratorErrorCategory {
DataLength,
DataDistribution,
}Expand description
An error category type for a generator error.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DataLength
The error is (mainly) about the length of the data.
DataDistribution
The error is (mainly) about the distribution of the data (or, repetitiveness).
Trait Implementations§
Source§impl Clone for GeneratorErrorCategory
impl Clone for GeneratorErrorCategory
Source§fn clone(&self) -> GeneratorErrorCategory
fn clone(&self) -> GeneratorErrorCategory
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 GeneratorErrorCategory
impl Debug for GeneratorErrorCategory
Source§impl PartialEq for GeneratorErrorCategory
impl PartialEq for GeneratorErrorCategory
impl Copy for GeneratorErrorCategory
impl Eq for GeneratorErrorCategory
impl StructuralPartialEq for GeneratorErrorCategory
Auto Trait Implementations§
impl Freeze for GeneratorErrorCategory
impl RefUnwindSafe for GeneratorErrorCategory
impl Send for GeneratorErrorCategory
impl Sync for GeneratorErrorCategory
impl Unpin for GeneratorErrorCategory
impl UnwindSafe for GeneratorErrorCategory
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