pub enum Code {
Show 99 variants
NUL,
Control(ControlCode),
Space,
ExclamationMark,
QuotationMark,
NumberSign,
DollarSign,
PercentSign,
Ampersand,
Apostrophe,
LeftParenthesis,
RightParenthesis,
LatinLowerAWithAcute,
PlusSign,
Comma,
HyphenMinus,
FullStop,
Solidus,
Zero,
One,
Two,
Three,
Four,
Five,
Six,
Seven,
Eight,
Nine,
Colon,
SemiColon,
LessThan,
Equals,
GreaterThan,
QuestionMark,
CommercialAt,
LatinCapitalA,
LatinCapitalB,
LatinCapitalC,
LatinCapitalD,
LatinCapitalE,
LatinCapitalF,
LatinCapitalG,
LatinCapitalH,
LatinCapitalI,
LatinCapitalJ,
LatinCapitalK,
LatinCapitalL,
LatinCapitalM,
LatinCapitalN,
LatinCapitalO,
LatinCapitalP,
LatinCapitalQ,
LatinCapitalR,
LatinCapitalS,
LatinCapitalT,
LatinCapitalU,
LatinCapitalV,
LatinCapitalW,
LatinCapitalX,
LatinCapitalY,
LatinCapitalZ,
LeftSquareBracket,
LatinLowerEWithAcute,
RightSquareBracket,
LatinLowerIWithAcute,
LatinLowerOWithAcute,
LatinLowerUWithAcute,
LatinLowerA,
LatinLowerB,
LatinLowerC,
LatinLowerD,
LatinLowerE,
LatinLowerF,
LatinLowerG,
LatinLowerH,
LatinLowerI,
LatinLowerJ,
LatinLowerK,
LatinLowerL,
LatinLowerM,
LatinLowerN,
LatinLowerO,
LatinLowerP,
LatinLowerQ,
LatinLowerR,
LatinLowerS,
LatinLowerT,
LatinLowerU,
LatinLowerV,
LatinLowerW,
LatinLowerX,
LatinLowerY,
LatinLowerZ,
LatinLowerCWithCedilla,
DivisionSign,
LatinCapitalNWithTilde,
LatinLowerNWithTilde,
SolidBlock,
Unknown(u8),
}Expand description
Enum of all possible characters or commands available
Variants§
NUL
Null value. Used as padding.
Control(ControlCode)
Control code.
Space
(space)
ExclamationMark
!
QuotationMark
“
NumberSign
#
DollarSign
$
PercentSign
%
Ampersand
&
Apostrophe
’
LeftParenthesis
(
RightParenthesis
)
LatinLowerAWithAcute
á
PlusSign
+
Comma
,
HyphenMinus
-
FullStop
.
Solidus
/
Zero
0
One
1
Two
2
Three
3
Four
4
Five
5
Six
6
Seven
7
Eight
8
Nine
9
Colon
:
SemiColon
;
LessThan
<
Equals
=
GreaterThan
>
QuestionMark
?
CommercialAt
@
LatinCapitalA
A
LatinCapitalB
B
LatinCapitalC
C
LatinCapitalD
D
LatinCapitalE
E
LatinCapitalF
F
LatinCapitalG
G
LatinCapitalH
H
LatinCapitalI
I
LatinCapitalJ
J
LatinCapitalK
K
LatinCapitalL
L
LatinCapitalM
M
LatinCapitalN
N
LatinCapitalO
O
LatinCapitalP
P
LatinCapitalQ
Q
LatinCapitalR
R
LatinCapitalS
S
LatinCapitalT
T
LatinCapitalU
U
LatinCapitalV
V
LatinCapitalW
W
LatinCapitalX
X
LatinCapitalY
Y
LatinCapitalZ
Z
LeftSquareBracket
[
LatinLowerEWithAcute
é
RightSquareBracket
]
LatinLowerIWithAcute
í
LatinLowerOWithAcute
ó
LatinLowerUWithAcute
ú
LatinLowerA
a
LatinLowerB
b
LatinLowerC
c
LatinLowerD
d
LatinLowerE
e
LatinLowerF
f
LatinLowerG
g
LatinLowerH
h
LatinLowerI
i
LatinLowerJ
j
LatinLowerK
k
LatinLowerL
l
LatinLowerM
m
LatinLowerN
n
LatinLowerO
o
LatinLowerP
p
LatinLowerQ
q
LatinLowerR
r
LatinLowerS
s
LatinLowerT
t
LatinLowerU
u
LatinLowerV
v
LatinLowerW
w
LatinLowerX
x
LatinLowerY
y
LatinLowerZ
z
LatinLowerCWithCedilla
ç
DivisionSign
÷
LatinCapitalNWithTilde
Ñ
LatinLowerNWithTilde
ñ
SolidBlock
█
Unknown(u8)
An unknown value.
Implementations§
Source§impl Code
impl Code
Sourcepub fn write_into(&self, bytes: &mut [u8; 2]) -> usize
pub fn write_into(&self, bytes: &mut [u8; 2]) -> usize
Sourcepub fn needs_backspace(&self) -> bool
pub fn needs_backspace(&self) -> bool
Whether or not this code requires there to have a backspace prepended for correct display
Trait Implementations§
Source§impl Ord for Code
impl Ord for Code
Source§impl PartialOrd for Code
impl PartialOrd for Code
impl Copy for Code
impl Eq for Code
impl StructuralPartialEq for Code
Auto Trait Implementations§
impl Freeze for Code
impl RefUnwindSafe for Code
impl Send for Code
impl Sync for Code
impl Unpin for Code
impl UnwindSafe for Code
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