Enum chargrid_input::InputPolicy
source · pub enum InputPolicy {
Up,
Down,
Left,
Right,
Select,
}
Expand description
Opinionated policy for interpreting input for convenience
Variants§
Trait Implementations§
source§impl Clone for InputPolicy
impl Clone for InputPolicy
source§fn clone(&self) -> InputPolicy
fn clone(&self) -> InputPolicy
Returns a copy 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 InputPolicy
impl Debug for InputPolicy
source§impl Hash for InputPolicy
impl Hash for InputPolicy
source§impl Ord for InputPolicy
impl Ord for InputPolicy
source§fn cmp(&self, other: &InputPolicy) -> Ordering
fn cmp(&self, other: &InputPolicy) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq for InputPolicy
impl PartialEq for InputPolicy
source§fn eq(&self, other: &InputPolicy) -> bool
fn eq(&self, other: &InputPolicy) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for InputPolicy
impl PartialOrd for InputPolicy
source§fn partial_cmp(&self, other: &InputPolicy) -> Option<Ordering>
fn partial_cmp(&self, other: &InputPolicy) -> 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 InputPolicy
impl Eq for InputPolicy
impl StructuralPartialEq for InputPolicy
Auto Trait Implementations§
impl RefUnwindSafe for InputPolicy
impl Send for InputPolicy
impl Sync for InputPolicy
impl Unpin for InputPolicy
impl UnwindSafe for InputPolicy
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