HandValidator

Trait HandValidator 

Source
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§

Source

fn are_unique(&self) -> bool

Source

fn first(&self) -> CKCNumber

Source

fn sort(&self) -> Self

Source

fn sort_in_place(&mut self)

Source

fn iter(&self) -> Iter<'_, CKCNumber>

Provided Methods§

Source

fn contain_blank(&self) -> bool

Source

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.

Source

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.

Implementors§