Enum CodeBlock

Source
#[repr(u16)]
pub enum CodeBlock {
Show 328 variants Adlam = 0, Aegean_Numbers = 1, Ahom = 2, Alchemical_Symbols = 3, Alphabetic_Presentation_Forms = 4, Anatolian_Hieroglyphs = 5, Ancient_Greek_Musical_Notation = 6, Ancient_Greek_Numbers = 7, Ancient_Symbols = 8, Arabic = 9, Arabic_Extended_A = 10, Arabic_Extended_B = 11, Arabic_Extended_C = 12, Arabic_Mathematical_Alphabetic_Symbols = 13, Arabic_Presentation_Forms_A = 14, Arabic_Presentation_Forms_B = 15, Arabic_Supplement = 16, Armenian = 17, Arrows = 18, Basic_Latin = 19, Avestan = 20, Balinese = 21, Bamum = 22, Bamum_Supplement = 23, Bassa_Vah = 24, Batak = 25, Bengali = 26, Bhaiksuki = 27, Block_Elements = 28, Bopomofo = 29, Bopomofo_Extended = 30, Box_Drawing = 31, Brahmi = 32, Braille_Patterns = 33, Buginese = 34, Buhid = 35, Byzantine_Musical_Symbols = 36, Carian = 37, Caucasian_Albanian = 38, Chakma = 39, Cham = 40, Cherokee = 41, Cherokee_Supplement = 42, Chess_Symbols = 43, Chorasmian = 44, CJK_Unified_Ideographs = 45, CJK_Compatibility = 46, CJK_Compatibility_Forms = 47, CJK_Compatibility_Ideographs = 48, CJK_Compatibility_Ideographs_Supplement = 49, CJK_Unified_Ideographs_Extension_A = 50, CJK_Unified_Ideographs_Extension_B = 51, CJK_Unified_Ideographs_Extension_C = 52, CJK_Unified_Ideographs_Extension_D = 53, CJK_Unified_Ideographs_Extension_E = 54, CJK_Unified_Ideographs_Extension_F = 55, CJK_Unified_Ideographs_Extension_G = 56, CJK_Unified_Ideographs_Extension_H = 57, CJK_Radicals_Supplement = 58, CJK_Strokes = 59, CJK_Symbols_And_Punctuation = 60, Hangul_Compatibility_Jamo = 61, Control_Pictures = 62, Coptic = 63, Coptic_Epact_Numbers = 64, Counting_Rod_Numerals = 65, Cuneiform = 66, Cuneiform_Numbers_And_Punctuation = 67, Currency_Symbols = 68, Cypriot_Syllabary = 69, Cypro_Minoan = 70, Cyrillic = 71, Cyrillic_Extended_A = 72, Cyrillic_Extended_B = 73, Cyrillic_Extended_C = 74, Cyrillic_Extended_D = 75, Cyrillic_Supplement = 76, Deseret = 77, Devanagari = 78, Devanagari_Extended = 79, Devanagari_Extended_A = 80, Combining_Diacritical_Marks = 81, Combining_Diacritical_Marks_Extended = 82, Combining_Diacritical_Marks_For_Symbols = 83, Combining_Diacritical_Marks_Supplement = 84, Dingbats = 85, Dives_Akuru = 86, Dogra = 87, Domino_Tiles = 88, Duployan = 89, Early_Dynastic_Cuneiform = 90, Egyptian_Hieroglyph_Format_Controls = 91, Egyptian_Hieroglyphs = 92, Elbasan = 93, Elymaic = 94, Emoticons = 95, Enclosed_Alphanumerics = 96, Enclosed_Alphanumeric_Supplement = 97, Enclosed_CJK_Letters_And_Months = 98, Enclosed_Ideographic_Supplement = 99, Ethiopic = 100, Ethiopic_Extended = 101, Ethiopic_Extended_A = 102, Ethiopic_Extended_B = 103, Ethiopic_Supplement = 104, Geometric_Shapes = 105, Geometric_Shapes_Extended = 106, Georgian = 107, Georgian_Extended = 108, Georgian_Supplement = 109, Glagolitic = 110, Glagolitic_Supplement = 111, Gothic = 112, Grantha = 113, Greek_And_Coptic = 114, Greek_Extended = 115, Gujarati = 116, Gunjala_Gondi = 117, Gurmukhi = 118, Halfwidth_And_Fullwidth_Forms = 119, Combining_Half_Marks = 120, Hangul_Syllables = 121, Hanifi_Rohingya = 122, Hanunoo = 123, Hatran = 124, Hebrew = 125, High_Private_Use_Surrogates = 126, High_Surrogates = 127, Hiragana = 128, Ideographic_Description_Characters = 129, Ideographic_Symbols_And_Punctuation = 130, Imperial_Aramaic = 131, Common_Indic_Number_Forms = 132, Indic_Siyaq_Numbers = 133, Inscriptional_Pahlavi = 134, Inscriptional_Parthian = 135, IPA_Extensions = 136, Hangul_Jamo = 137, Hangul_Jamo_Extended_A = 138, Hangul_Jamo_Extended_B = 139, Javanese = 140, Kaithi = 141, Kaktovik_Numerals = 142, Kana_Extended_A = 143, Kana_Extended_B = 144, Kana_Supplement = 145, Kanbun = 146, Kangxi_Radicals = 147, Kannada = 148, Katakana = 149, Katakana_Phonetic_Extensions = 150, Kawi = 151, Kayah_Li = 152, Kharoshthi = 153, Khitan_Small_Script = 154, Khmer = 155, Khmer_Symbols = 156, Khojki = 157, Khudawadi = 158, Lao = 159, Latin_1_Supplement = 160, Latin_Extended_A = 161, Latin_Extended_Additional = 162, Latin_Extended_B = 163, Latin_Extended_C = 164, Latin_Extended_D = 165, Latin_Extended_E = 166, Latin_Extended_F = 167, Latin_Extended_G = 168, Lepcha = 169, Letterlike_Symbols = 170, Limbu = 171, Linear_A = 172, Linear_B_Ideograms = 173, Linear_B_Syllabary = 174, Lisu = 175, Lisu_Supplement = 176, Low_Surrogates = 177, Lycian = 178, Lydian = 179, Mahajani = 180, Mahjong_Tiles = 181, Makasar = 182, Malayalam = 183, Mandaic = 184, Manichaean = 185, Marchen = 186, Masaram_Gondi = 187, Mathematical_Alphanumeric_Symbols = 188, Mathematical_Operators = 189, Mayan_Numerals = 190, Medefaidrin = 191, Meetei_Mayek = 192, Meetei_Mayek_Extensions = 193, Mende_Kikakui = 194, Meroitic_Cursive = 195, Meroitic_Hieroglyphs = 196, Miao = 197, Miscellaneous_Symbols_And_Arrows = 198, Miscellaneous_Mathematical_Symbols_A = 199, Miscellaneous_Mathematical_Symbols_B = 200, Miscellaneous_Symbols_And_Pictographs = 201, Miscellaneous_Symbols = 202, Miscellaneous_Technical = 203, Modi = 204, Spacing_Modifier_Letters = 205, Modifier_Tone_Letters = 206, Mongolian = 207, Mongolian_Supplement = 208, Mro = 209, Multani = 210, Musical_Symbols = 211, Myanmar = 212, Myanmar_Extended_A = 213, Myanmar_Extended_B = 214, Nabataean = 215, Nag_Mundari = 216, Nandinagari = 217, No_Block = 218, New_Tai_Lue = 219, Newa = 220, NKo = 221, Number_Forms = 222, Nushu = 223, Nyiakeng_Puachue_Hmong = 224, Optical_Character_Recognition = 225, Ogham = 226, Ol_Chiki = 227, Old_Hungarian = 228, Old_Italic = 229, Old_North_Arabian = 230, Old_Permic = 231, Old_Persian = 232, Old_Sogdian = 233, Old_South_Arabian = 234, Old_Turkic = 235, Old_Uyghur = 236, Oriya = 237, Ornamental_Dingbats = 238, Osage = 239, Osmanya = 240, Ottoman_Siyaq_Numbers = 241, Pahawh_Hmong = 242, Palmyrene = 243, Pau_Cin_Hau = 244, Phags_Pa = 245, Phaistos_Disc = 246, Phoenician = 247, Phonetic_Extensions = 248, Phonetic_Extensions_Supplement = 249, Playing_Cards = 250, Psalter_Pahlavi = 251, Private_Use_Area = 252, General_Punctuation = 253, Rejang = 254, Rumi_Numeral_Symbols = 255, Runic = 256, Samaritan = 257, Saurashtra = 258, Sharada = 259, Shavian = 260, Shorthand_Format_Controls = 261, Siddham = 262, Sinhala = 263, Sinhala_Archaic_Numbers = 264, Small_Form_Variants = 265, Small_Kana_Extension = 266, Sogdian = 267, Sora_Sompeng = 268, Soyombo = 269, Specials = 270, Sundanese = 271, Sundanese_Supplement = 272, Supplemental_Arrows_A = 273, Supplemental_Arrows_B = 274, Supplemental_Arrows_C = 275, Supplemental_Mathematical_Operators = 276, Supplementary_Private_Use_Area_A = 277, Supplementary_Private_Use_Area_B = 278, Supplemental_Punctuation = 279, Supplemental_Symbols_And_Pictographs = 280, Superscripts_And_Subscripts = 281, Sutton_SignWriting = 282, Syloti_Nagri = 283, Symbols_And_Pictographs_Extended_A = 284, Symbols_For_Legacy_Computing = 285, Syriac = 286, Syriac_Supplement = 287, Tagalog = 288, Tagbanwa = 289, Tags = 290, Tai_Le = 291, Tai_Tham = 292, Tai_Viet = 293, Tai_Xuan_Jing_Symbols = 294, Takri = 295, Tamil = 296, Tamil_Supplement = 297, Tangsa = 298, Tangut = 299, Tangut_Components = 300, Tangut_Supplement = 301, Telugu = 302, Thaana = 303, Thai = 304, Tibetan = 305, Tifinagh = 306, Tirhuta = 307, Toto = 308, Transport_And_Map_Symbols = 309, Unified_Canadian_Aboriginal_Syllabics = 310, Unified_Canadian_Aboriginal_Syllabics_Extended = 311, Unified_Canadian_Aboriginal_Syllabics_Extended_A = 312, Ugaritic = 313, Vai = 314, Vedic_Extensions = 315, Vertical_Forms = 316, Vithkuqi = 317, Variation_Selectors = 318, Variation_Selectors_Supplement = 319, Wancho = 320, Warang_Citi = 321, Yezidi = 322, Yi_Radicals = 323, Yi_Syllables = 324, Yijing_Hexagram_Symbols = 325, Zanabazar_Square = 326, Znamenny_Musical_Notation = 327,
}

Variants§

§

Adlam = 0

§

Aegean_Numbers = 1

§

Ahom = 2

§

Alchemical_Symbols = 3

§

Alphabetic_Presentation_Forms = 4

§

Anatolian_Hieroglyphs = 5

§

Ancient_Greek_Musical_Notation = 6

§

Ancient_Greek_Numbers = 7

§

Ancient_Symbols = 8

§

Arabic = 9

§

Arabic_Extended_A = 10

§

Arabic_Extended_B = 11

§

Arabic_Extended_C = 12

§

Arabic_Mathematical_Alphabetic_Symbols = 13

§

Arabic_Presentation_Forms_A = 14

§

Arabic_Presentation_Forms_B = 15

§

Arabic_Supplement = 16

§

Armenian = 17

§

Arrows = 18

§

Basic_Latin = 19

§

Avestan = 20

§

Balinese = 21

§

Bamum = 22

§

Bamum_Supplement = 23

§

Bassa_Vah = 24

§

Batak = 25

§

Bengali = 26

§

Bhaiksuki = 27

§

Block_Elements = 28

§

Bopomofo = 29

§

Bopomofo_Extended = 30

§

Box_Drawing = 31

§

Brahmi = 32

§

Braille_Patterns = 33

§

Buginese = 34

§

Buhid = 35

§

Byzantine_Musical_Symbols = 36

§

Carian = 37

§

Caucasian_Albanian = 38

§

Chakma = 39

§

Cham = 40

§

Cherokee = 41

§

Cherokee_Supplement = 42

§

Chess_Symbols = 43

§

Chorasmian = 44

§

CJK_Unified_Ideographs = 45

§

CJK_Compatibility = 46

§

CJK_Compatibility_Forms = 47

§

CJK_Compatibility_Ideographs = 48

§

CJK_Compatibility_Ideographs_Supplement = 49

§

CJK_Unified_Ideographs_Extension_A = 50

§

CJK_Unified_Ideographs_Extension_B = 51

§

CJK_Unified_Ideographs_Extension_C = 52

§

CJK_Unified_Ideographs_Extension_D = 53

§

CJK_Unified_Ideographs_Extension_E = 54

§

CJK_Unified_Ideographs_Extension_F = 55

§

CJK_Unified_Ideographs_Extension_G = 56

§

CJK_Unified_Ideographs_Extension_H = 57

§

CJK_Radicals_Supplement = 58

§

CJK_Strokes = 59

§

CJK_Symbols_And_Punctuation = 60

§

Hangul_Compatibility_Jamo = 61

§

Control_Pictures = 62

§

Coptic = 63

§

Coptic_Epact_Numbers = 64

§

Counting_Rod_Numerals = 65

§

Cuneiform = 66

§

Cuneiform_Numbers_And_Punctuation = 67

§

Currency_Symbols = 68

§

Cypriot_Syllabary = 69

§

Cypro_Minoan = 70

§

Cyrillic = 71

§

Cyrillic_Extended_A = 72

§

Cyrillic_Extended_B = 73

§

Cyrillic_Extended_C = 74

§

Cyrillic_Extended_D = 75

§

Cyrillic_Supplement = 76

§

Deseret = 77

§

Devanagari = 78

§

Devanagari_Extended = 79

§

Devanagari_Extended_A = 80

§

Combining_Diacritical_Marks = 81

§

Combining_Diacritical_Marks_Extended = 82

§

Combining_Diacritical_Marks_For_Symbols = 83

§

Combining_Diacritical_Marks_Supplement = 84

§

Dingbats = 85

§

Dives_Akuru = 86

§

Dogra = 87

§

Domino_Tiles = 88

§

Duployan = 89

§

Early_Dynastic_Cuneiform = 90

§

Egyptian_Hieroglyph_Format_Controls = 91

§

Egyptian_Hieroglyphs = 92

§

Elbasan = 93

§

Elymaic = 94

§

Emoticons = 95

§

Enclosed_Alphanumerics = 96

§

Enclosed_Alphanumeric_Supplement = 97

§

Enclosed_CJK_Letters_And_Months = 98

§

Enclosed_Ideographic_Supplement = 99

§

Ethiopic = 100

§

Ethiopic_Extended = 101

§

Ethiopic_Extended_A = 102

§

Ethiopic_Extended_B = 103

§

Ethiopic_Supplement = 104

§

Geometric_Shapes = 105

§

Geometric_Shapes_Extended = 106

§

Georgian = 107

§

Georgian_Extended = 108

§

Georgian_Supplement = 109

§

Glagolitic = 110

§

Glagolitic_Supplement = 111

§

Gothic = 112

§

Grantha = 113

§

Greek_And_Coptic = 114

§

Greek_Extended = 115

§

Gujarati = 116

§

Gunjala_Gondi = 117

§

Gurmukhi = 118

§

Halfwidth_And_Fullwidth_Forms = 119

§

Combining_Half_Marks = 120

§

Hangul_Syllables = 121

§

Hanifi_Rohingya = 122

§

Hanunoo = 123

§

Hatran = 124

§

Hebrew = 125

§

High_Private_Use_Surrogates = 126

§

High_Surrogates = 127

§

Hiragana = 128

§

Ideographic_Description_Characters = 129

§

Ideographic_Symbols_And_Punctuation = 130

§

Imperial_Aramaic = 131

§

Common_Indic_Number_Forms = 132

§

Indic_Siyaq_Numbers = 133

§

Inscriptional_Pahlavi = 134

§

Inscriptional_Parthian = 135

§

IPA_Extensions = 136

§

Hangul_Jamo = 137

§

Hangul_Jamo_Extended_A = 138

§

Hangul_Jamo_Extended_B = 139

§

Javanese = 140

§

Kaithi = 141

§

Kaktovik_Numerals = 142

§

Kana_Extended_A = 143

§

Kana_Extended_B = 144

§

Kana_Supplement = 145

§

Kanbun = 146

§

Kangxi_Radicals = 147

§

Kannada = 148

§

Katakana = 149

§

Katakana_Phonetic_Extensions = 150

§

Kawi = 151

§

Kayah_Li = 152

§

Kharoshthi = 153

§

Khitan_Small_Script = 154

§

Khmer = 155

§

Khmer_Symbols = 156

§

Khojki = 157

§

Khudawadi = 158

§

Lao = 159

§

Latin_1_Supplement = 160

§

Latin_Extended_A = 161

§

Latin_Extended_Additional = 162

§

Latin_Extended_B = 163

§

Latin_Extended_C = 164

§

Latin_Extended_D = 165

§

Latin_Extended_E = 166

§

Latin_Extended_F = 167

§

Latin_Extended_G = 168

§

Lepcha = 169

§

Letterlike_Symbols = 170

§

Limbu = 171

§

Linear_A = 172

§

Linear_B_Ideograms = 173

§

Linear_B_Syllabary = 174

§

Lisu = 175

§

Lisu_Supplement = 176

§

Low_Surrogates = 177

§

Lycian = 178

§

Lydian = 179

§

Mahajani = 180

§

Mahjong_Tiles = 181

§

Makasar = 182

§

Malayalam = 183

§

Mandaic = 184

§

Manichaean = 185

§

Marchen = 186

§

Masaram_Gondi = 187

§

Mathematical_Alphanumeric_Symbols = 188

§

Mathematical_Operators = 189

§

Mayan_Numerals = 190

§

Medefaidrin = 191

§

Meetei_Mayek = 192

§

Meetei_Mayek_Extensions = 193

§

Mende_Kikakui = 194

§

Meroitic_Cursive = 195

§

Meroitic_Hieroglyphs = 196

§

Miao = 197

§

Miscellaneous_Symbols_And_Arrows = 198

§

Miscellaneous_Mathematical_Symbols_A = 199

§

Miscellaneous_Mathematical_Symbols_B = 200

§

Miscellaneous_Symbols_And_Pictographs = 201

§

Miscellaneous_Symbols = 202

§

Miscellaneous_Technical = 203

§

Modi = 204

§

Spacing_Modifier_Letters = 205

§

Modifier_Tone_Letters = 206

§

Mongolian = 207

§

Mongolian_Supplement = 208

§

Mro = 209

§

Multani = 210

§

Musical_Symbols = 211

§

Myanmar = 212

§

Myanmar_Extended_A = 213

§

Myanmar_Extended_B = 214

§

Nabataean = 215

§

Nag_Mundari = 216

§

Nandinagari = 217

§

No_Block = 218

§

New_Tai_Lue = 219

§

Newa = 220

§

NKo = 221

§

Number_Forms = 222

§

Nushu = 223

§

Nyiakeng_Puachue_Hmong = 224

§

Optical_Character_Recognition = 225

§

Ogham = 226

§

Ol_Chiki = 227

§

Old_Hungarian = 228

§

Old_Italic = 229

§

Old_North_Arabian = 230

§

Old_Permic = 231

§

Old_Persian = 232

§

Old_Sogdian = 233

§

Old_South_Arabian = 234

§

Old_Turkic = 235

§

Old_Uyghur = 236

§

Oriya = 237

§

Ornamental_Dingbats = 238

§

Osage = 239

§

Osmanya = 240

§

Ottoman_Siyaq_Numbers = 241

§

Pahawh_Hmong = 242

§

Palmyrene = 243

§

Pau_Cin_Hau = 244

§

Phags_Pa = 245

§

Phaistos_Disc = 246

§

Phoenician = 247

§

Phonetic_Extensions = 248

§

Phonetic_Extensions_Supplement = 249

§

Playing_Cards = 250

§

Psalter_Pahlavi = 251

§

Private_Use_Area = 252

§

General_Punctuation = 253

§

Rejang = 254

§

Rumi_Numeral_Symbols = 255

§

Runic = 256

§

Samaritan = 257

§

Saurashtra = 258

§

Sharada = 259

§

Shavian = 260

§

Shorthand_Format_Controls = 261

§

Siddham = 262

§

Sinhala = 263

§

Sinhala_Archaic_Numbers = 264

§

Small_Form_Variants = 265

§

Small_Kana_Extension = 266

§

Sogdian = 267

§

Sora_Sompeng = 268

§

Soyombo = 269

§

Specials = 270

§

Sundanese = 271

§

Sundanese_Supplement = 272

§

Supplemental_Arrows_A = 273

§

Supplemental_Arrows_B = 274

§

Supplemental_Arrows_C = 275

§

Supplemental_Mathematical_Operators = 276

§

Supplementary_Private_Use_Area_A = 277

§

Supplementary_Private_Use_Area_B = 278

§

Supplemental_Punctuation = 279

§

Supplemental_Symbols_And_Pictographs = 280

§

Superscripts_And_Subscripts = 281

§

Sutton_SignWriting = 282

§

Syloti_Nagri = 283

§

Symbols_And_Pictographs_Extended_A = 284

§

Symbols_For_Legacy_Computing = 285

§

Syriac = 286

§

Syriac_Supplement = 287

§

Tagalog = 288

§

Tagbanwa = 289

§

Tags = 290

§

Tai_Le = 291

§

Tai_Tham = 292

§

Tai_Viet = 293

§

Tai_Xuan_Jing_Symbols = 294

§

Takri = 295

§

Tamil = 296

§

Tamil_Supplement = 297

§

Tangsa = 298

§

Tangut = 299

§

Tangut_Components = 300

§

Tangut_Supplement = 301

§

Telugu = 302

§

Thaana = 303

§

Thai = 304

§

Tibetan = 305

§

Tifinagh = 306

§

Tirhuta = 307

§

Toto = 308

§

Transport_And_Map_Symbols = 309

§

Unified_Canadian_Aboriginal_Syllabics = 310

§

Unified_Canadian_Aboriginal_Syllabics_Extended = 311

§

Unified_Canadian_Aboriginal_Syllabics_Extended_A = 312

§

Ugaritic = 313

§

Vai = 314

§

Vedic_Extensions = 315

§

Vertical_Forms = 316

§

Vithkuqi = 317

§

Variation_Selectors = 318

§

Variation_Selectors_Supplement = 319

§

Wancho = 320

§

Warang_Citi = 321

§

Yezidi = 322

§

Yi_Radicals = 323

§

Yi_Syllables = 324

§

Yijing_Hexagram_Symbols = 325

§

Zanabazar_Square = 326

§

Znamenny_Musical_Notation = 327

Implementations§

Source§

impl CodeBlock

Source

pub fn as_str(self) -> &'static str

Trait Implementations§

Source§

impl Clone for CodeBlock

Source§

fn clone(&self) -> CodeBlock

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 CodeBlock

Source§

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

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

impl Hash for CodeBlock

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl PartialEq for CodeBlock

Source§

fn eq(&self, other: &CodeBlock) -> 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 Copy for CodeBlock

Source§

impl Eq for CodeBlock

Source§

impl StructuralPartialEq for CodeBlock

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.