Skip to main content

HasPegging

Trait HasPegging 

Source
pub trait HasPegging {
    // Required method
    fn pegging(&self) -> Option<&Pegging>;
}
Expand description

Trait for types that contain pegging information.

Required Methods§

Source

fn pegging(&self) -> Option<&Pegging>

Returns an immutable reference to optional pegging information. This is used to provide pegging scores for hands and crib. The optional return allows for the most recent “play” pegging to be returned, in the case where no scoring play has been made yet.

Implementors§