Struct wallet_core::Choice
pub struct Choice(u8);
Expand description
a choice
A Choice
is a representation of a choice that has been made and must
be compliant with the Options
. A way to validate it is with Options::validate
.
Tuple Fields§
§0: u8
Implementations§
Trait Implementations§
§impl Ord for Choice
impl Ord for Choice
§impl PartialOrd<Choice> for Choice
impl PartialOrd<Choice> for Choice
§fn partial_cmp(&self, other: &Choice) -> Option<Ordering>
fn partial_cmp(&self, other: &Choice) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moreimpl Copy for Choice
impl Eq for Choice
impl StructuralEq for Choice
impl StructuralPartialEq for Choice
Auto Trait Implementations§
impl RefUnwindSafe for Choice
impl Send for Choice
impl Sync for Choice
impl Unpin for Choice
impl UnwindSafe for Choice
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more