pub struct SpecialCodeIndex(/* private fields */);
Expand description

Indices for use with Termios::special_codes.

Implementations§

source§

impl SpecialCodeIndex

source

pub const VINTR: Self = _

VINTR

source

pub const VQUIT: Self = _

VQUIT

source

pub const VERASE: Self = _

VERASE

source

pub const VKILL: Self = _

VKILL

source

pub const VEOF: Self = _

VEOF

source

pub const VTIME: Self = _

VTIME

source

pub const VMIN: Self = _

VMIN

source

pub const VSWTC: Self = _

VSWTC

source

pub const VSTART: Self = _

VSTART

source

pub const VSTOP: Self = _

VSTOP

source

pub const VSUSP: Self = _

VSUSP

source

pub const VEOL: Self = _

VEOL

source

pub const VREPRINT: Self = _

VREPRINT

source

pub const VDISCARD: Self = _

VDISCARD

source

pub const VWERASE: Self = _

VWERASE

source

pub const VLNEXT: Self = _

VLNEXT

source

pub const VEOL2: Self = _

VEOL2

Trait Implementations§

source§

impl Index<SpecialCodeIndex> for SpecialCodes

§

type Output = u8

The returned type after indexing.
source§

fn index(&self, index: SpecialCodeIndex) -> &Self::Output

Performs the indexing (container[index]) operation. Read more
source§

impl IndexMut<SpecialCodeIndex> for SpecialCodes

source§

fn index_mut(&mut self, index: SpecialCodeIndex) -> &mut Self::Output

Performs the mutable indexing (container[index]) operation. Read more

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

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

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.