pub struct InvalidTrickCount;Expand description
Error returned when a trick count is outside 0..=13
Produced by both TrickCount::try_new and TrickCountRow::try_new.
Trait Implementations§
Source§impl Clone for InvalidTrickCount
impl Clone for InvalidTrickCount
Source§fn clone(&self) -> InvalidTrickCount
fn clone(&self) -> InvalidTrickCount
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 InvalidTrickCount
impl Debug for InvalidTrickCount
Source§impl Display for InvalidTrickCount
impl Display for InvalidTrickCount
Source§impl Error for InvalidTrickCount
impl Error for InvalidTrickCount
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 Hash for InvalidTrickCount
impl Hash for InvalidTrickCount
Source§impl PartialEq for InvalidTrickCount
impl PartialEq for InvalidTrickCount
impl Copy for InvalidTrickCount
impl Eq for InvalidTrickCount
impl StructuralPartialEq for InvalidTrickCount
Auto Trait Implementations§
impl Freeze for InvalidTrickCount
impl RefUnwindSafe for InvalidTrickCount
impl Send for InvalidTrickCount
impl Sync for InvalidTrickCount
impl Unpin for InvalidTrickCount
impl UnsafeUnpin for InvalidTrickCount
impl UnwindSafe for InvalidTrickCount
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