Control

Enum Control 

Source
pub enum Control {
Show 102 variants MidRow(MidRow), RegisteredTrademarkSign, DegreeSign, Fraction12, InvertedQuestionMark, TradeMarkSign, CentSign, PoundSign, MusicalNote, LatinLowerAWithGrave, TransparentSpace, LatinLowerEWithGrave, LatinLowerAWithCircumflex, LatinLowerEWithCircumflex, LatinLowerIWithCircumflex, LatinLowerOWithCircumflex, LatinLowerUWithCircumflex, LatinCapitalAWithAcute, LatinCapitalEWithAcute, LatinCapitalOWithAcute, LatinCapitalUWithAcute, LatinCapitalUWithDiaeseresis, LatinLowerUWithDiaeseresis, OpeningSingleQuote, InvertedExclamationMark, Asterisk, SingleOpenQuote, EmDash, CopyrightSign, ServiceMarkSign, RoundBullet, DoubleOpenQuote, DoubleCloseQuote, LatinCapitalAWithGrave, LatinCapitalAWithCircumflex, LatinCapitalCWithCedilla, LatinCapitalEWithGrave, LatinCapitalEWithCircumflex, LatinCapitalEWithDiaeresis, LatinLowerEWithDiaeresis, LatinCapitalIWithCircumflex, LatinCapitalIWithDiaeresis, LatinLowerIWithDiaeresis, LatinCapitalOWithCircumflex, LatinCapitalUWithGrave, LatinLowerUWithGrave, LatinCapitalUWithCircumflex, OpeningGuillemets, ClosingGuillemets, LatinCapitalAWithTilde, LatinLowerAWithTilde, LatinCapitalIWithAcute, LatinCapitalIWithGrave, LatinLowerIWithGrave, LatinCapitalOWithGrave, LatinLowerOWithGrave, LatinCapitalOWithTilde, LatinLowerOWithTilde, OpeningBrace, ClosingBrace, ReverseSolidus, Caret, Underbar, Pipe, Tilde, LatinCapitalAWithDiaeresis, LatinLowerAWithDiaeresis, LatinCapitalOWithDiaeresis, LatinLowerOWithDiaeresis, LatinLowerSharpS, YenSign, GeneralCurrencySign, VerticalBar, LatinCapitalAWithRingAbove, LatinLowerAWithRingAbove, LatinCapitalOWithStroke, LatinLowerOWithStroke, UpperLeftBorder, UpperRightBorder, LowerLeftBorder, LowerRightBorder, ResumeCaptionLoading, Backspace, AlarmOff, AlarmOn, DeleteToEndOfRow, RollUp2, RollUp3, RollUp4, FlashOn, ResumeDirectionCaptioning, TextRestart, ResumeTextDisplay, EraseDisplayedMemory, CarriageReturn, EraseNonDisplayedMemory, EndOfCaption, TabOffset1, TabOffset2, TabOffset3, PreambleAddress(PreambleAddressCode), Unknown([u8; 2]),
}
Expand description

Enum representing control commands

Variants§

§

MidRow(MidRow)

A midrow control code.

§

RegisteredTrademarkSign

§

DegreeSign

°

§

Fraction12

½

§

InvertedQuestionMark

¿

§

TradeMarkSign

§

CentSign

¢

§

PoundSign

£

§

MusicalNote

§

LatinLowerAWithGrave

à

§

TransparentSpace

(Transparent)

§

LatinLowerEWithGrave

è

§

LatinLowerAWithCircumflex

â

§

LatinLowerEWithCircumflex

ê

§

LatinLowerIWithCircumflex

î

§

LatinLowerOWithCircumflex

ô

§

LatinLowerUWithCircumflex

û

§

LatinCapitalAWithAcute

Á

§

LatinCapitalEWithAcute

É

§

LatinCapitalOWithAcute

Ó

§

LatinCapitalUWithAcute

Ú

§

LatinCapitalUWithDiaeseresis

Ü

§

LatinLowerUWithDiaeseresis

ü

§

OpeningSingleQuote

§

InvertedExclamationMark

¡

§

Asterisk

§

SingleOpenQuote

§

EmDash

_

§

CopyrightSign

§

ServiceMarkSign

§

RoundBullet

§

DoubleOpenQuote

§

DoubleCloseQuote

§

LatinCapitalAWithGrave

À

§

LatinCapitalAWithCircumflex

Â

§

LatinCapitalCWithCedilla

Ç

§

LatinCapitalEWithGrave

È

§

LatinCapitalEWithCircumflex

Ê

§

LatinCapitalEWithDiaeresis

Ë

§

LatinLowerEWithDiaeresis

ë

§

LatinCapitalIWithCircumflex

Î

§

LatinCapitalIWithDiaeresis

Ï

§

LatinLowerIWithDiaeresis

ï

§

LatinCapitalOWithCircumflex

Ô

§

LatinCapitalUWithGrave

Ù

§

LatinLowerUWithGrave

ù

§

LatinCapitalUWithCircumflex

Û

§

OpeningGuillemets

«

§

ClosingGuillemets

»

§

LatinCapitalAWithTilde

Ã

§

LatinLowerAWithTilde

ã

§

LatinCapitalIWithAcute

Í

§

LatinCapitalIWithGrave

Ì

§

LatinLowerIWithGrave

ì

§

LatinCapitalOWithGrave

Ò

§

LatinLowerOWithGrave

ò

§

LatinCapitalOWithTilde

Õ

§

LatinLowerOWithTilde

õ

§

OpeningBrace

{

§

ClosingBrace

}

§

ReverseSolidus

\

§

Caret

^

§

Underbar

_

§

Pipe

|

§

Tilde

~

§

LatinCapitalAWithDiaeresis

Ä

§

LatinLowerAWithDiaeresis

ä

§

LatinCapitalOWithDiaeresis

Ö

§

LatinLowerOWithDiaeresis

ö

§

LatinLowerSharpS

ß

§

YenSign

¥

§

GeneralCurrencySign

¤

§

VerticalBar

¦

§

LatinCapitalAWithRingAbove

Å

§

LatinLowerAWithRingAbove

å

§

LatinCapitalOWithStroke

Ø

§

LatinLowerOWithStroke

ø

§

UpperLeftBorder

§

UpperRightBorder

§

LowerLeftBorder

§

LowerRightBorder

§

ResumeCaptionLoading

Changes the mode of captioning to Pop-on. Existing displayed captions are not affected.

§

Backspace

Remove the character at the previous location and move the cursor one character backwards.

§

AlarmOff

Reserved (was Alarm Off).

§

AlarmOn

Reserved (was Alarm On).

§

DeleteToEndOfRow

Delete all characters from the current cursor position to the end of the row.

§

RollUp2

Change the mode of captioning to Roll-Up with 2 rows.

§

RollUp3

Change the mode of captioning to Roll-Up with 3 rows.

§

RollUp4

Change the mode of captioning to Roll-Up with 4 rows.

§

FlashOn

Indicate that the character flash on and off.

§

ResumeDirectionCaptioning

Changes the mode of captioning to Paint-on. Existing displayed captions are not affected.

§

TextRestart

Enter Text mode, clearing the Text screen buffer of any contents.

§

ResumeTextDisplay

Enter Text mode, keeping the Text screen buffer intact.

§

EraseDisplayedMemory

Remove all contents from the displayed screen buffer.

§

CarriageReturn

Move the cursor to the next row and column 0. Depending on the current mode, this will result in different visual output. See the CEA-608 specification for details.

§

EraseNonDisplayedMemory

Remove all contents from the no displayed screen buffer.

§

EndOfCaption

Flip the non displayed and displayed screen buffer.

§

TabOffset1

Move the cursor one character to the right.

§

TabOffset2

Move the cursor two characters to the right.

§

TabOffset3

Move the cursor three characters to the right.

§

PreambleAddress(PreambleAddressCode)

A preamble address code signalling row and column position as well as some text formatting information.

§

Unknown([u8; 2])

An unknown command.

Implementations§

Source§

impl Control

Source

pub fn tab_offset(offset: u8) -> Option<Control>

Construct a new tab offset control code.

Trait Implementations§

Source§

impl Clone for Control

Source§

fn clone(&self) -> Control

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Control

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Ord for Control

Source§

fn cmp(&self, other: &Control) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for Control

Source§

fn eq(&self, other: &Control) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for Control

Source§

fn partial_cmp(&self, other: &Control) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl Copy for Control

Source§

impl Eq for Control

Source§

impl StructuralPartialEq for Control

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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 T
where 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

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 T
where U: TryFrom<T>,

Source§

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.