Enum Char

Source
#[repr(u8)]
pub enum Char {
Show 256 variants Null = 0, SOH = 1, STX = 2, ETX = 3, EOT = 4, ENQ = 5, ACK = 6, BEL = 7, BS = 8, HT = 9, LF = 10, VT = 11, FF = 12, CR = 13, SO = 14, SI = 15, DLE = 16, DC1 = 17, DC2 = 18, DC3 = 19, DC4 = 20, NAK = 21, SYN = 22, ETB = 23, CAN = 24, EM = 25, SUB = 26, Escape = 27, FS = 28, GS = 29, RS = 30, US = 31, Space = 32, ExclamationMark = 33, QuotationMark = 34, NumberSign = 35, DollarSign = 36, PercentSign = 37, Ampersand = 38, Apostrophe = 39, LeftParenthesis = 40, RightParenthesis = 41, Asterisk = 42, PlusSign = 43, Comma = 44, HyphenMinus = 45, FullStop = 46, Solidus = 47, DigitZero = 48, DigitOne = 49, DigitTwo = 50, DigitThree = 51, DigitFour = 52, DigitFive = 53, DigitSix = 54, DigitSeven = 55, DigitEight = 56, DigitNine = 57, Colon = 58, Semicolon = 59, LessThanSign = 60, EqualsSign = 61, GreaterThanSign = 62, QuestionMark = 63, CommercialAt = 64, LatinCapitalLetterA = 65, LatinCapitalLetterB = 66, LatinCapitalLetterC = 67, LatinCapitalLetterD = 68, LatinCapitalLetterE = 69, LatinCapitalLetterF = 70, LatinCapitalLetterG = 71, LatinCapitalLetterH = 72, LatinCapitalLetterI = 73, LatinCapitalLetterJ = 74, LatinCapitalLetterK = 75, LatinCapitalLetterL = 76, LatinCapitalLetterM = 77, LatinCapitalLetterN = 78, LatinCapitalLetterO = 79, LatinCapitalLetterP = 80, LatinCapitalLetterQ = 81, LatinCapitalLetterR = 82, LatinCapitalLetterS = 83, LatinCapitalLetterT = 84, LatinCapitalLetterU = 85, LatinCapitalLetterV = 86, LatinCapitalLetterW = 87, LatinCapitalLetterX = 88, LatinCapitalLetterY = 89, LatinCapitalLetterZ = 90, LeftSquareBracket = 91, ReverseSolidus = 92, RightSquareBracket = 93, CircumflexAccent = 94, LowLine = 95, GraveAccent = 96, LatinSmallLetterA = 97, LatinSmallLetterB = 98, LatinSmallLetterC = 99, LatinSmallLetterD = 100, LatinSmallLetterE = 101, LatinSmallLetterF = 102, LatinSmallLetterG = 103, LatinSmallLetterH = 104, LatinSmallLetterI = 105, LatinSmallLetterJ = 106, LatinSmallLetterK = 107, LatinSmallLetterL = 108, LatinSmallLetterM = 109, LatinSmallLetterN = 110, LatinSmallLetterO = 111, LatinSmallLetterP = 112, LatinSmallLetterQ = 113, LatinSmallLetterR = 114, LatinSmallLetterS = 115, LatinSmallLetterT = 116, LatinSmallLetterU = 117, LatinSmallLetterV = 118, LatinSmallLetterW = 119, LatinSmallLetterX = 120, LatinSmallLetterY = 121, LatinSmallLetterZ = 122, LeftCurlyBracket = 123, VerticalLine = 124, RightCurlyBracket = 125, Tilde = 126, Delete = 127, LatinCapitalLetterCWithCedilla = 128, LatinSmallLetterUWithDiaeresis = 129, LatinSmallLetterEWithAcute = 130, LatinSmallLetterAWithCircumflex = 131, LatinSmallLetterAWithDiaeresis = 132, LatinSmallLetterAWithGrave = 133, LatinSmallLetterAWithRingAbove = 134, LatinSmallLetterCWithCedilla = 135, LatinSmallLetterEWithCircumflex = 136, LatinSmallLetterEWithDiaeresis = 137, LatinSmallLetterEWithGrave = 138, LatinSmallLetterIWithDiaeresis = 139, LatinSmallLetterIWithCircumflex = 140, LatinSmallLetterIWithGrave = 141, LatinCapitalLetterAWithDiaeresis = 142, LatinCapitalLetterAWithRingAbove = 143, LatinCapitalLetterEWithAcute = 144, LatinSmallLetterAe = 145, LatinCapitalLetterAe = 146, LatinSmallLetterOWithCircumflex = 147, LatinSmallLetterOWithDiaeresis = 148, LatinSmallLetterOWithGrave = 149, LatinSmallLetterUWithCircumflex = 150, LatinSmallLetterUWithGrave = 151, LatinSmallLetterYWithDiaeresis = 152, LatinCapitalLetterOWithDiaeresis = 153, LatinCapitalLetterUWithDiaeresis = 154, LatinSmallLetterOWithStroke = 155, PoundSign = 156, LatinCapitalLetterOWithStroke = 157, MultiplicationSign = 158, LatinSmallLetterFWithHook = 159, LatinSmallLetterAWithAcute = 160, LatinSmallLetterIWithAcute = 161, LatinSmallLetterOWithAcute = 162, LatinSmallLetterUWithAcute = 163, LatinSmallLetterNWithTilde = 164, LatinCapitalLetterNWithTilde = 165, FeminineOrdinalIndicator = 166, MasculineOrdinalIndicator = 167, InvertedQuestionMark = 168, RegisteredSign = 169, NotSign = 170, VulgarFractionOneHalf = 171, VulgarFractionOneQuarter = 172, InvertedExclamationMark = 173, LeftPointingDoubleAngleQuotationMark = 174, RightPointingDoubleAngleQuotationMark = 175, LightShade = 176, MediumShade = 177, DarkShade = 178, BoxDrawingsLightVertical = 179, BoxDrawingsLightVerticalAndLeft = 180, LatinCapitalLetterAWithAcute = 181, LatinCapitalLetterAWithCircumflex = 182, LatinCapitalLetterAWithGrave = 183, CopyrightSign = 184, BoxDrawingsDoubleVerticalAndLeft = 185, BoxDrawingsDoubleVertical = 186, BoxDrawingsDoubleDownAndLeft = 187, BoxDrawingsDoubleUpAndLeft = 188, CentSign = 189, YenSign = 190, BoxDrawingsLightDownAndLeft = 191, BoxDrawingsLightUpAndRight = 192, BoxDrawingsLightUpAndHorizontal = 193, BoxDrawingsLightDownAndHorizontal = 194, BoxDrawingsLightVerticalAndRight = 195, BoxDrawingsLightHorizontal = 196, BoxDrawingsLightVerticalAndHorizontal = 197, LatinSmallLetterAWithTilde = 198, LatinCapitalLetterAWithTilde = 199, BoxDrawingsDoubleUpAndRight = 200, BoxDrawingsDoubleDownAndRight = 201, BoxDrawingsDoubleUpAndHorizontal = 202, BoxDrawingsDoubleDownAndHorizontal = 203, BoxDrawingsDoubleVerticalAndRight = 204, BoxDrawingsDoubleHorizontal = 205, BoxDrawingsDoubleVerticalAndHorizontal = 206, CurrencySign = 207, LatinSmallLetterEth = 208, LatinCapitalLetterEth = 209, LatinCapitalLetterEWithCircumflex = 210, LatinCapitalLetterEWithDiaeresis = 211, LatinCapitalLetterEWithGrave = 212, LatinSmallLetterDotlessI = 213, LatinCapitalLetterIWithAcute = 214, LatinCapitalLetterIWithCircumflex = 215, LatinCapitalLetterIWithDiaeresis = 216, BoxDrawingsLightUpAndLeft = 217, BoxDrawingsLightDownAndRight = 218, FullBlock = 219, LowerHalfBlock = 220, BrokenBar = 221, LatinCapitalLetterIWithGrave = 222, UpperHalfBlock = 223, LatinCapitalLetterOWithAcute = 224, LatinSmallLetterSharpS = 225, LatinCapitalLetterOWithCircumflex = 226, LatinCapitalLetterOWithGrave = 227, LatinSmallLetterOWithTilde = 228, LatinCapitalLetterOWithTilde = 229, MicroSign = 230, LatinSmallLetterThorn = 231, LatinCapitalLetterThorn = 232, LatinCapitalLetterUWithAcute = 233, LatinCapitalLetterUWithCircumflex = 234, LatinCapitalLetterUWithGrave = 235, LatinSmallLetterYWithAcute = 236, LatinCapitalLetterYWithAcute = 237, Macron = 238, AcuteAccent = 239, SoftHyphen = 240, PlusMinusSign = 241, DoubleLowLine = 242, VulgarFractionThreeQuarters = 243, PilcrowSign = 244, SectionSign = 245, DivisionSign = 246, Cedilla = 247, DegreeSign = 248, Diaeresis = 249, MiddleDot = 250, SuperscriptOne = 251, SuperscriptThree = 252, SuperscriptTwo = 253, BlackSquare = 254, NoBreakSpace = 255,
}
Expand description

This MS-DOS CodePage 850. It offers a compromise between the box characters of CodePage 437 and the accents of ISO 8859-1 / Latin-1.

Variants§

§

Null = 0

§

SOH = 1

§

STX = 2

§

ETX = 3

§

EOT = 4

§

ENQ = 5

§

ACK = 6

§

BEL = 7

§

BS = 8

§

HT = 9

§

LF = 10

§

VT = 11

§

FF = 12

§

CR = 13

§

SO = 14

§

SI = 15

§

DLE = 16

§

DC1 = 17

§

DC2 = 18

§

DC3 = 19

§

DC4 = 20

§

NAK = 21

§

SYN = 22

§

ETB = 23

§

CAN = 24

§

EM = 25

§

SUB = 26

§

Escape = 27

§

FS = 28

§

GS = 29

§

RS = 30

§

US = 31

§

Space = 32

§

ExclamationMark = 33

§

QuotationMark = 34

§

NumberSign = 35

§

DollarSign = 36

§

PercentSign = 37

§

Ampersand = 38

§

Apostrophe = 39

§

LeftParenthesis = 40

§

RightParenthesis = 41

§

Asterisk = 42

§

PlusSign = 43

§

Comma = 44

§

HyphenMinus = 45

§

FullStop = 46

§

Solidus = 47

§

DigitZero = 48

§

DigitOne = 49

§

DigitTwo = 50

§

DigitThree = 51

§

DigitFour = 52

§

DigitFive = 53

§

DigitSix = 54

§

DigitSeven = 55

§

DigitEight = 56

§

DigitNine = 57

§

Colon = 58

§

Semicolon = 59

§

LessThanSign = 60

§

EqualsSign = 61

§

GreaterThanSign = 62

§

QuestionMark = 63

§

CommercialAt = 64

§

LatinCapitalLetterA = 65

§

LatinCapitalLetterB = 66

§

LatinCapitalLetterC = 67

§

LatinCapitalLetterD = 68

§

LatinCapitalLetterE = 69

§

LatinCapitalLetterF = 70

§

LatinCapitalLetterG = 71

§

LatinCapitalLetterH = 72

§

LatinCapitalLetterI = 73

§

LatinCapitalLetterJ = 74

§

LatinCapitalLetterK = 75

§

LatinCapitalLetterL = 76

§

LatinCapitalLetterM = 77

§

LatinCapitalLetterN = 78

§

LatinCapitalLetterO = 79

§

LatinCapitalLetterP = 80

§

LatinCapitalLetterQ = 81

§

LatinCapitalLetterR = 82

§

LatinCapitalLetterS = 83

§

LatinCapitalLetterT = 84

§

LatinCapitalLetterU = 85

§

LatinCapitalLetterV = 86

§

LatinCapitalLetterW = 87

§

LatinCapitalLetterX = 88

§

LatinCapitalLetterY = 89

§

LatinCapitalLetterZ = 90

§

LeftSquareBracket = 91

§

ReverseSolidus = 92

§

RightSquareBracket = 93

§

CircumflexAccent = 94

§

LowLine = 95

§

GraveAccent = 96

§

LatinSmallLetterA = 97

§

LatinSmallLetterB = 98

§

LatinSmallLetterC = 99

§

LatinSmallLetterD = 100

§

LatinSmallLetterE = 101

§

LatinSmallLetterF = 102

§

LatinSmallLetterG = 103

§

LatinSmallLetterH = 104

§

LatinSmallLetterI = 105

§

LatinSmallLetterJ = 106

§

LatinSmallLetterK = 107

§

LatinSmallLetterL = 108

§

LatinSmallLetterM = 109

§

LatinSmallLetterN = 110

§

LatinSmallLetterO = 111

§

LatinSmallLetterP = 112

§

LatinSmallLetterQ = 113

§

LatinSmallLetterR = 114

§

LatinSmallLetterS = 115

§

LatinSmallLetterT = 116

§

LatinSmallLetterU = 117

§

LatinSmallLetterV = 118

§

LatinSmallLetterW = 119

§

LatinSmallLetterX = 120

§

LatinSmallLetterY = 121

§

LatinSmallLetterZ = 122

§

LeftCurlyBracket = 123

§

VerticalLine = 124

§

RightCurlyBracket = 125

§

Tilde = 126

§

Delete = 127

§

LatinCapitalLetterCWithCedilla = 128

§

LatinSmallLetterUWithDiaeresis = 129

§

LatinSmallLetterEWithAcute = 130

§

LatinSmallLetterAWithCircumflex = 131

§

LatinSmallLetterAWithDiaeresis = 132

§

LatinSmallLetterAWithGrave = 133

§

LatinSmallLetterAWithRingAbove = 134

§

LatinSmallLetterCWithCedilla = 135

§

LatinSmallLetterEWithCircumflex = 136

§

LatinSmallLetterEWithDiaeresis = 137

§

LatinSmallLetterEWithGrave = 138

§

LatinSmallLetterIWithDiaeresis = 139

§

LatinSmallLetterIWithCircumflex = 140

§

LatinSmallLetterIWithGrave = 141

§

LatinCapitalLetterAWithDiaeresis = 142

§

LatinCapitalLetterAWithRingAbove = 143

§

LatinCapitalLetterEWithAcute = 144

§

LatinSmallLetterAe = 145

§

LatinCapitalLetterAe = 146

§

LatinSmallLetterOWithCircumflex = 147

§

LatinSmallLetterOWithDiaeresis = 148

§

LatinSmallLetterOWithGrave = 149

§

LatinSmallLetterUWithCircumflex = 150

§

LatinSmallLetterUWithGrave = 151

§

LatinSmallLetterYWithDiaeresis = 152

§

LatinCapitalLetterOWithDiaeresis = 153

§

LatinCapitalLetterUWithDiaeresis = 154

§

LatinSmallLetterOWithStroke = 155

§

PoundSign = 156

§

LatinCapitalLetterOWithStroke = 157

§

MultiplicationSign = 158

§

LatinSmallLetterFWithHook = 159

§

LatinSmallLetterAWithAcute = 160

§

LatinSmallLetterIWithAcute = 161

§

LatinSmallLetterOWithAcute = 162

§

LatinSmallLetterUWithAcute = 163

§

LatinSmallLetterNWithTilde = 164

§

LatinCapitalLetterNWithTilde = 165

§

FeminineOrdinalIndicator = 166

§

MasculineOrdinalIndicator = 167

§

InvertedQuestionMark = 168

§

RegisteredSign = 169

§

NotSign = 170

§

VulgarFractionOneHalf = 171

§

VulgarFractionOneQuarter = 172

§

InvertedExclamationMark = 173

§

LeftPointingDoubleAngleQuotationMark = 174

§

RightPointingDoubleAngleQuotationMark = 175

§

LightShade = 176

§

MediumShade = 177

§

DarkShade = 178

§

BoxDrawingsLightVertical = 179

§

BoxDrawingsLightVerticalAndLeft = 180

§

LatinCapitalLetterAWithAcute = 181

§

LatinCapitalLetterAWithCircumflex = 182

§

LatinCapitalLetterAWithGrave = 183

§

CopyrightSign = 184

§

BoxDrawingsDoubleVerticalAndLeft = 185

§

BoxDrawingsDoubleVertical = 186

§

BoxDrawingsDoubleDownAndLeft = 187

§

BoxDrawingsDoubleUpAndLeft = 188

§

CentSign = 189

§

YenSign = 190

§

BoxDrawingsLightDownAndLeft = 191

§

BoxDrawingsLightUpAndRight = 192

§

BoxDrawingsLightUpAndHorizontal = 193

§

BoxDrawingsLightDownAndHorizontal = 194

§

BoxDrawingsLightVerticalAndRight = 195

§

BoxDrawingsLightHorizontal = 196

§

BoxDrawingsLightVerticalAndHorizontal = 197

§

LatinSmallLetterAWithTilde = 198

§

LatinCapitalLetterAWithTilde = 199

§

BoxDrawingsDoubleUpAndRight = 200

§

BoxDrawingsDoubleDownAndRight = 201

§

BoxDrawingsDoubleUpAndHorizontal = 202

§

BoxDrawingsDoubleDownAndHorizontal = 203

§

BoxDrawingsDoubleVerticalAndRight = 204

§

BoxDrawingsDoubleHorizontal = 205

§

BoxDrawingsDoubleVerticalAndHorizontal = 206

§

CurrencySign = 207

§

LatinSmallLetterEth = 208

§

LatinCapitalLetterEth = 209

§

LatinCapitalLetterEWithCircumflex = 210

§

LatinCapitalLetterEWithDiaeresis = 211

§

LatinCapitalLetterEWithGrave = 212

§

LatinSmallLetterDotlessI = 213

§

LatinCapitalLetterIWithAcute = 214

§

LatinCapitalLetterIWithCircumflex = 215

§

LatinCapitalLetterIWithDiaeresis = 216

§

BoxDrawingsLightUpAndLeft = 217

§

BoxDrawingsLightDownAndRight = 218

§

FullBlock = 219

§

LowerHalfBlock = 220

§

BrokenBar = 221

§

LatinCapitalLetterIWithGrave = 222

§

UpperHalfBlock = 223

§

LatinCapitalLetterOWithAcute = 224

§

LatinSmallLetterSharpS = 225

§

LatinCapitalLetterOWithCircumflex = 226

§

LatinCapitalLetterOWithGrave = 227

§

LatinSmallLetterOWithTilde = 228

§

LatinCapitalLetterOWithTilde = 229

§

MicroSign = 230

§

LatinSmallLetterThorn = 231

§

LatinCapitalLetterThorn = 232

§

LatinCapitalLetterUWithAcute = 233

§

LatinCapitalLetterUWithCircumflex = 234

§

LatinCapitalLetterUWithGrave = 235

§

LatinSmallLetterYWithAcute = 236

§

LatinCapitalLetterYWithAcute = 237

§

Macron = 238

§

AcuteAccent = 239

§

SoftHyphen = 240

§

PlusMinusSign = 241

§

DoubleLowLine = 242

§

VulgarFractionThreeQuarters = 243

§

PilcrowSign = 244

§

SectionSign = 245

§

DivisionSign = 246

§

Cedilla = 247

§

DegreeSign = 248

§

Diaeresis = 249

§

MiddleDot = 250

§

SuperscriptOne = 251

§

SuperscriptThree = 252

§

SuperscriptTwo = 253

§

BlackSquare = 254

§

NoBreakSpace = 255

Implementations§

Source§

impl Char

Source

pub fn map_char(ch: char) -> Char

Convert a Unicode scalar value into an 8-bit Code Page 850 character. Characters that can’t be mapped are set to ‘?’ (Char::QuestionMark). Both the Unicode control characters and the relevant Unicode symbols (like BLACK HEART SUIT) are mapped into the 0..31 range, so this is not a 1:1 mapping.

Source

pub fn from_byte(byte: u8) -> Char

Convert an 8-bit integer into a Char (assumes input is in CodePage 850).

Source

pub fn to_byte(self) -> u8

Convert to an 8-bit integer.

Trait Implementations§

Source§

impl Clone for Char

Source§

fn clone(&self) -> Char

Returns a copy 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 Default for Char

Source§

fn default() -> Char

Returns the “default value” for a type. Read more
Source§

impl Copy for Char

Auto Trait Implementations§

§

impl Freeze for Char

§

impl RefUnwindSafe for Char

§

impl Send for Char

§

impl Sync for Char

§

impl Unpin for Char

§

impl UnwindSafe for Char

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, 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.