[][src]Struct terminal_input::Modifiers

pub struct Modifiers(_);

The set of modifier keys (e.g. Ctrl, Alt, and Shift) that were pressed at the time of an event. Represented as an opaque bitmap to allow for extension with other keys, such as a Meta or Command key.

Implementations

impl Modifiers[src]

pub const NONE: Modifiers[src]

pub const SHIFT: Modifiers[src]

pub const ALT: Modifiers[src]

pub const CTRL: Modifiers[src]

pub const fn remove(self, other: Modifiers) -> Modifiers[src]

pub const fn bitor(self, other: Modifiers) -> Modifiers[src]

pub const fn bitand(self, other: Modifiers) -> Modifiers[src]

pub const fn eq(&self, other: &Modifiers) -> bool[src]

Trait Implementations

impl BitAnd<Modifiers> for Modifiers[src]

type Output = Modifiers

The resulting type after applying the & operator.

impl BitOr<Modifiers> for Modifiers[src]

type Output = Modifiers

The resulting type after applying the | operator.

impl Clone for Modifiers[src]

impl Copy for Modifiers[src]

impl Debug for Modifiers[src]

impl Eq for Modifiers[src]

impl PartialEq<Modifiers> for Modifiers[src]

impl StructuralEq for Modifiers[src]

impl StructuralPartialEq for Modifiers[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.