pub trait HandValidator {
// Required methods
fn are_unique(&self) -> bool;
fn first(&self) -> CKCNumber;
fn sort(&self) -> Self;
fn sort_in_place(&mut self);
fn iter(&self) -> Iter<'_, CKCNumber>;
// Provided methods
fn contain_blank(&self) -> bool { ... }
fn is_corrupt(&self) -> bool { ... }
fn is_valid(&self) -> bool { ... }
}Required Methods§
fn are_unique(&self) -> bool
fn first(&self) -> CKCNumber
fn sort(&self) -> Self
fn sort_in_place(&mut self)
fn iter(&self) -> Iter<'_, CKCNumber>
Provided Methods§
fn contain_blank(&self) -> bool
Sourcefn is_corrupt(&self) -> bool
fn is_corrupt(&self) -> bool
A corrupt hand is one where any of the values in the array doesn’t correspond to any
recognized CardNumber or is blank.
fn is_valid(&self) -> bool
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.