Unit

Enum Unit 

Source
#[repr(u16)]
pub enum Unit {
Show 492 variants Null = 0, Avesterra = 1, Radian = 2, Degree = 3, Circle = 4, Turn = 5, Revolution = 6, Grade = 7, Arcdegree = 8, Arcminute = 9, Ccs = 10, Arsecond = 11, Steradian = 12, Sphere = 13, Second = 14, Minute = 15, Hour = 16, Day = 17, Week = 18, Year = 19, Month = 20, Kilogram = 21, Gram = 22, Metricton = 23, Pound = 24, Pound_force = 25, Ounce = 26, Dram = 27, Grain = 28, Ton = 29, Longton = 30, Scruple = 31, Apdram = 32, Troy_ounce = 33, Troy_pound = 34, Pennyweight = 35, Meter = 36, Micron = 37, Angstrom = 38, Bohr_radious = 39, Inch = 40, Foot = 41, Yard = 42, Rod = 43, Mile = 44, Statue_mile = 45, Nautical_mile = 46, Acre = 47, Cubic_centimeter = 48, Liter = 49, Milliliter = 50, Gallon = 51, Imperial = 52, Quart = 53, Pint = 54, Fluid_ounce = 55, Fluid_dram = 56, Shot = 57, Dry = 58, Peck = 59, Bushel = 60, Chaldron = 61, British_gallon = 62, British_quart = 63, British_pint = 64, British_fluid_ounce = 65, British_peck = 66, British_hundred_weight = 67, Bottle = 68, Miniature = 69, Split = 70, Half = 71, Magnum = 72, Jeroboam = 73, Rehoboam = 74, Methuselah = 75, Salmanazar = 76, Balthazar = 77, Nebuchadnezzar = 78, Sovereign = 79, Pony = 80, Fillette = 81, Tappit_hen = 82, Rheoboam = 83, Shalmaneser = 84, Berkovets = 85, Pood = 86, Funt = 87, Lot = 88, Zolotnik = 89, Dolya = 90, Rumile = 91, Mezhevayaverst = 92, Verst = 93, Sazhen = 94, Kosayasazhen = 95, Arshin = 96, Ruell = 97, Liniya = 98, Vershok = 99, Pyad = 100, Vedro = 101, Shtoff = 102, Vinebottle = 103, Vodkabottle = 104, Charka = 105, Shkalik = 106, Desyatina_state = 107, Desyatina_farmery = 108, Sqverst = 109, Sqarshin_unit = 110, Sqfoot = 111, Newton = 112, Joule = 113, Calorie = 114, Newton_meter = 115, Newton_centimeter = 116, Pound_foot = 117, Pound_inch = 118, Kelvin = 119, Celcius = 120, Farenheit = 121, Rankine = 122, Reaumur = 123, Coulomb = 124, Ampere = 125, Watt = 126, Volt = 127, Ohm = 128, Mho = 129, Farad = 130, Henry = 131, Weber = 132, Candela = 133, Lumen = 134, Lux = 135, Euro = 136, Austriaschilling = 137, Belgiumfranc = 138, Finlandmarkka = 139, Francefranc = 140, Germanymark = 141, Greecedrachma = 142, Irelandpunt = 143, Italylira = 144, Luxembourgfranc = 145, Netherlandsguilder = 146, Portugalescudo = 147, Spainpeseta = 148, Sloveniantolar = 149, Cypriotpound = 150, Malteselira = 151, Slovakkoruna = 152, Bosniaherzegovinamark = 153, Bulgarianlev = 154, Capeverdeanescudo = 155, Centralafricancfafranc = 156, Comorosfranc = 157, Danishkrone = 158, Estoniakroon = 159, Lithuanianlitas = 160, Pacificfrancexchange = 161, Westafricancfafranc = 162, Us_dollar = 163, Dollar = 164, Arubanflorin = 165, Bahamiandollar = 166, Bahrainidinar = 167, Barbadiandollar = 168, Belizedollar = 169, Belarusianruble = 170, Bermudiandollar = 171, Caymanislandsdollar = 172, Cubanconvertiblepeso = 173, Djiboutianfranc = 174, Eastcaribbeandollar = 175, Eritreannakfa = 176, Hongkongdollar = 177, Macanesepatacas = 178, Jordaniandinar = 179, Lebanesepound = 180, Maldivianrufiyaa = 181, Netherlandsantilleanguilder = 182, Omanirial = 183, Qataririyal = 184, Saudiriyal = 185, Unitedarabemiratesdirham = 186, Bosniamark = 187, Cfafranc = 188, Cfpfranc = 189, Drachma = 190, Escudo = 191, Franc = 192, Guilder = 193, Herzegovinamark = 194, Hollandguilder = 195, Lira = 196, Mark = 197, Markka = 198, Peseta = 199, Rand = 200, Erlang = 201, Bit = 202, Baud = 203, Nibble = 204, Nybble = 205, Byte = 206, Word = 207, Block = 208, Kbyte = 209, Megabyte = 210, Gigabyte = 211, Terabyte = 212, Petabyte = 213, Exabyte = 214, Zettabyte = 215, Yottabyte = 216, Kilobyte = 217, Percent = 218, Abampere = 219, Admiraltyknot = 220, Apostilb = 221, Are = 222, Asb = 223, Arpentcan = 224, Arpentlin = 225, Atmosphere = 226, Atomic_mass_unit = 227, Seconds_in_a_year = 228, Amu = 229, Bag = 230, Bakersdozen = 231, Bar = 232, Barie = 233, Barleycorn = 234, Barn = 235, Oilbarrel = 236, Barrel = 237, Barye = 238, Baryl = 239, Bev = 240, Biot = 241, Blondel = 242, Boardfoot = 243, Bolt = 244, Bottommeasure = 245, Britishthermalunit = 246, Btu = 247, Refrigeration = 248, Buck = 249, Cable = 250, Caliber = 251, Carat = 252, Caratgold = 253, Cent = 254, Cental = 255, Centesimalminute = 256, Centesimalsecond = 257, Century = 258, Cfs = 259, Chain = 260, Circularinch = 261, Circularmil = 262, Clusec = 263, Coomb = 264, Cord = 265, Cordfoot = 266, Crith = 267, Cubit = 268, Cup = 269, Curie = 270, Dalton = 271, Decade = 272, Dioptre = 273, Displacementton = 274, Doppelzentner = 275, Dozen = 276, Drop = 277, Dyne = 278, Electronvolt = 279, Ell = 280, Engineerschain = 281, Engineerslink = 282, Equivalentfootcandle = 283, Equivalentlux = 284, Equivalentphot = 285, Erg = 286, Electron_volt = 287, Faraday = 288, Fathom = 289, Fermi = 290, Fifth = 291, Fin = 292, Finger = 293, Firkin = 294, Footcandle = 295, Footlambert = 296, Fortnight = 297, Franklin = 298, Frigorie = 299, Furlong = 300, Galileo = 301, Gamma = 302, Gauss = 303, Geodeticfoot = 304, Geographicalmile = 305, Gilbert = 306, Gill = 307, Gross = 308, Gunterschain = 309, Hand = 310, Hartree = 311, Head = 312, Hectare = 313, Hefnercandle = 314, Hertz = 315, Hogshead = 316, Homestead = 317, Horsepower = 318, Hubble = 319, Hyl = 320, Imaginarycubicfoot = 321, Jansky = 322, Karat = 323, Kayser = 324, Key = 325, Kilderkin = 326, Knot = 327, Lambert = 328, Langley = 329, Last = 330, League = 331, Lightyear = 332, Line = 333, Link = 334, Longhundredweight = 335, Longquarter = 336, Lusec = 337, Mass_earth = 338, Mass_moon = 339, Mass_sun = 340, Mach = 341, Marineleague = 342, Maxwell = 343, Metriccarat = 344, Mgd = 345, Millihenry = 346, Mil = 347, Millennium = 348, Minersinch = 349, Minim = 350, Miles_per_gallon = 351, Miles_per_hour = 352, Nail = 353, Nmile = 354, Nit = 355, Noggin = 356, Nox = 357, Oersted = 358, Pace = 359, Pair = 360, Palm = 361, Parasang = 362, Parsec = 363, Pascal = 364, Perch = 365, Phot = 366, Pica = 367, Pieze = 368, Pipe = 369, Point = 370, Poise = 371, Pole = 372, Pond = 373, Poundal = 374, Pdl = 375, Proof = 376, Psi = 377, Quarter = 378, Quartersection = 379, Quintal = 380, Quire = 381, Radious_earth = 382, Adious_moon = 383, Adious_sun = 384, Rackunit = 385, Rad = 386, Ream = 387, Registerton = 388, Rem = 389, Rhe = 390, Rontgen = 391, Roentgen = 392, Rood = 393, Rope = 394, Rutherford = 395, Rydbergconst = 396, Rydberg = 397, Sabin = 398, Sack = 399, Score = 400, Seam = 401, Section = 402, Shed = 403, Shippington = 404, Shorthundredweight = 405, Shortquarter = 406, Siemens = 407, Sigma = 408, Skein = 409, Skot = 410, Slug = 411, Smoot = 412, Span = 413, Spat = 414, Spindle = 415, Square = 416, Stere = 417, Sthene = 418, Stilb = 419, Sb = 420, Stoke = 421, Stone = 422, Strike = 423, Surveyfoot = 424, Surveyyard = 425, Surveyorschain = 426, Surveyorslink = 427, Tablespoon = 428, Teaspoon = 429, Tesla = 430, Therm = 431, Thermie = 432, Timberfoot = 433, Tnt = 434, Tonne = 435, Torr = 436, Township = 437, Tsp = 438, Tun = 439, Water = 440, Wey = 441, Weymass = 442, X = 443, K = 444, Degc = 445, Brewster = 446, Drachm = 447, Poncelet = 448, Denier = 449, Tex = 450, Englishell = 451, Scottishell = 452, Flemishell = 453, Bohrradius = 454, Becquerel = 455, Fresnel = 456, Statcoul = 457, Statamp = 458, Statvolt = 459, Statcoulomb = 460, Statampere = 461, Debye = 462, Pulsatance = 463, Rpm = 464, Rps = 465, Kilohm = 466, Megohm = 467, Siderealyear = 468, Siderealday = 469, Siderealhour = 470, Lunarmonth = 471, Synodicmonth = 472, Siderealmonth = 473, Tropicalyear = 474, Solaryear = 475, Lunaryear = 476, Cran = 477, Kip = 478, Frenchfoot = 479, Toise = 480, Sievert = 481, Candle = 482, Militarypace = 483, Iudiptheria = 484, Iupenicillin = 485, Iuinsulin = 486, Cottonyarncount = 487, Linenyarncount = 488, Worstedyarncount = 489, Metricyarncount = 490, Jewlerspoint = 491,
}

Variants§

§

Null = 0

§

Avesterra = 1

§

Radian = 2

§

Degree = 3

§

Circle = 4

§

Turn = 5

§

Revolution = 6

§

Grade = 7

§

Arcdegree = 8

§

Arcminute = 9

§

Ccs = 10

§

Arsecond = 11

§

Steradian = 12

§

Sphere = 13

§

Second = 14

§

Minute = 15

§

Hour = 16

§

Day = 17

§

Week = 18

§

Year = 19

§

Month = 20

§

Kilogram = 21

§

Gram = 22

§

Metricton = 23

§

Pound = 24

§

Pound_force = 25

§

Ounce = 26

§

Dram = 27

§

Grain = 28

§

Ton = 29

§

Longton = 30

§

Scruple = 31

§

Apdram = 32

§

Troy_ounce = 33

§

Troy_pound = 34

§

Pennyweight = 35

§

Meter = 36

§

Micron = 37

§

Angstrom = 38

§

Bohr_radious = 39

§

Inch = 40

§

Foot = 41

§

Yard = 42

§

Rod = 43

§

Mile = 44

§

Statue_mile = 45

§

Nautical_mile = 46

§

Acre = 47

§

Cubic_centimeter = 48

§

Liter = 49

§

Milliliter = 50

§

Gallon = 51

§

Imperial = 52

§

Quart = 53

§

Pint = 54

§

Fluid_ounce = 55

§

Fluid_dram = 56

§

Shot = 57

§

Dry = 58

§

Peck = 59

§

Bushel = 60

§

Chaldron = 61

§

British_gallon = 62

§

British_quart = 63

§

British_pint = 64

§

British_fluid_ounce = 65

§

British_peck = 66

§

British_hundred_weight = 67

§

Bottle = 68

§

Miniature = 69

§

Split = 70

§

Half = 71

§

Magnum = 72

§

Jeroboam = 73

§

Rehoboam = 74

§

Methuselah = 75

§

Salmanazar = 76

§

Balthazar = 77

§

Nebuchadnezzar = 78

§

Sovereign = 79

§

Pony = 80

§

Fillette = 81

§

Tappit_hen = 82

§

Rheoboam = 83

§

Shalmaneser = 84

§

Berkovets = 85

§

Pood = 86

§

Funt = 87

§

Lot = 88

§

Zolotnik = 89

§

Dolya = 90

§

Rumile = 91

§

Mezhevayaverst = 92

§

Verst = 93

§

Sazhen = 94

§

Kosayasazhen = 95

§

Arshin = 96

§

Ruell = 97

§

Liniya = 98

§

Vershok = 99

§

Pyad = 100

§

Vedro = 101

§

Shtoff = 102

§

Vinebottle = 103

§

Vodkabottle = 104

§

Charka = 105

§

Shkalik = 106

§

Desyatina_state = 107

§

Desyatina_farmery = 108

§

Sqverst = 109

§

Sqarshin_unit = 110

§

Sqfoot = 111

§

Newton = 112

§

Joule = 113

§

Calorie = 114

§

Newton_meter = 115

§

Newton_centimeter = 116

§

Pound_foot = 117

§

Pound_inch = 118

§

Kelvin = 119

§

Celcius = 120

§

Farenheit = 121

§

Rankine = 122

§

Reaumur = 123

§

Coulomb = 124

§

Ampere = 125

§

Watt = 126

§

Volt = 127

§

Ohm = 128

§

Mho = 129

§

Farad = 130

§

Henry = 131

§

Weber = 132

§

Candela = 133

§

Lumen = 134

§

Lux = 135

§

Euro = 136

§

Austriaschilling = 137

§

Belgiumfranc = 138

§

Finlandmarkka = 139

§

Francefranc = 140

§

Germanymark = 141

§

Greecedrachma = 142

§

Irelandpunt = 143

§

Italylira = 144

§

Luxembourgfranc = 145

§

Netherlandsguilder = 146

§

Portugalescudo = 147

§

Spainpeseta = 148

§

Sloveniantolar = 149

§

Cypriotpound = 150

§

Malteselira = 151

§

Slovakkoruna = 152

§

Bosniaherzegovinamark = 153

§

Bulgarianlev = 154

§

Capeverdeanescudo = 155

§

Centralafricancfafranc = 156

§

Comorosfranc = 157

§

Danishkrone = 158

§

Estoniakroon = 159

§

Lithuanianlitas = 160

§

Pacificfrancexchange = 161

§

Westafricancfafranc = 162

§

Us_dollar = 163

§

Dollar = 164

§

Arubanflorin = 165

§

Bahamiandollar = 166

§

Bahrainidinar = 167

§

Barbadiandollar = 168

§

Belizedollar = 169

§

Belarusianruble = 170

§

Bermudiandollar = 171

§

Caymanislandsdollar = 172

§

Cubanconvertiblepeso = 173

§

Djiboutianfranc = 174

§

Eastcaribbeandollar = 175

§

Eritreannakfa = 176

§

Hongkongdollar = 177

§

Macanesepatacas = 178

§

Jordaniandinar = 179

§

Lebanesepound = 180

§

Maldivianrufiyaa = 181

§

Netherlandsantilleanguilder = 182

§

Omanirial = 183

§

Qataririyal = 184

§

Saudiriyal = 185

§

Unitedarabemiratesdirham = 186

§

Bosniamark = 187

§

Cfafranc = 188

§

Cfpfranc = 189

§

Drachma = 190

§

Escudo = 191

§

Franc = 192

§

Guilder = 193

§

Herzegovinamark = 194

§

Hollandguilder = 195

§

Lira = 196

§

Mark = 197

§

Markka = 198

§

Peseta = 199

§

Rand = 200

§

Erlang = 201

§

Bit = 202

§

Baud = 203

§

Nibble = 204

§

Nybble = 205

§

Byte = 206

§

Word = 207

§

Block = 208

§

Kbyte = 209

§

Megabyte = 210

§

Gigabyte = 211

§

Terabyte = 212

§

Petabyte = 213

§

Exabyte = 214

§

Zettabyte = 215

§

Yottabyte = 216

§

Kilobyte = 217

§

Percent = 218

§

Abampere = 219

§

Admiraltyknot = 220

§

Apostilb = 221

§

Are = 222

§

Asb = 223

§

Arpentcan = 224

§

Arpentlin = 225

§

Atmosphere = 226

§

Atomic_mass_unit = 227

§

Seconds_in_a_year = 228

§

Amu = 229

§

Bag = 230

§

Bakersdozen = 231

§

Bar = 232

§

Barie = 233

§

Barleycorn = 234

§

Barn = 235

§

Oilbarrel = 236

§

Barrel = 237

§

Barye = 238

§

Baryl = 239

§

Bev = 240

§

Biot = 241

§

Blondel = 242

§

Boardfoot = 243

§

Bolt = 244

§

Bottommeasure = 245

§

Britishthermalunit = 246

§

Btu = 247

§

Refrigeration = 248

§

Buck = 249

§

Cable = 250

§

Caliber = 251

§

Carat = 252

§

Caratgold = 253

§

Cent = 254

§

Cental = 255

§

Centesimalminute = 256

§

Centesimalsecond = 257

§

Century = 258

§

Cfs = 259

§

Chain = 260

§

Circularinch = 261

§

Circularmil = 262

§

Clusec = 263

§

Coomb = 264

§

Cord = 265

§

Cordfoot = 266

§

Crith = 267

§

Cubit = 268

§

Cup = 269

§

Curie = 270

§

Dalton = 271

§

Decade = 272

§

Dioptre = 273

§

Displacementton = 274

§

Doppelzentner = 275

§

Dozen = 276

§

Drop = 277

§

Dyne = 278

§

Electronvolt = 279

§

Ell = 280

§

Engineerschain = 281

§

Equivalentfootcandle = 283

§

Equivalentlux = 284

§

Equivalentphot = 285

§

Erg = 286

§

Electron_volt = 287

§

Faraday = 288

§

Fathom = 289

§

Fermi = 290

§

Fifth = 291

§

Fin = 292

§

Finger = 293

§

Firkin = 294

§

Footcandle = 295

§

Footlambert = 296

§

Fortnight = 297

§

Franklin = 298

§

Frigorie = 299

§

Furlong = 300

§

Galileo = 301

§

Gamma = 302

§

Gauss = 303

§

Geodeticfoot = 304

§

Geographicalmile = 305

§

Gilbert = 306

§

Gill = 307

§

Gross = 308

§

Gunterschain = 309

§

Hand = 310

§

Hartree = 311

§

Head = 312

§

Hectare = 313

§

Hefnercandle = 314

§

Hertz = 315

§

Hogshead = 316

§

Homestead = 317

§

Horsepower = 318

§

Hubble = 319

§

Hyl = 320

§

Imaginarycubicfoot = 321

§

Jansky = 322

§

Karat = 323

§

Kayser = 324

§

Key = 325

§

Kilderkin = 326

§

Knot = 327

§

Lambert = 328

§

Langley = 329

§

Last = 330

§

League = 331

§

Lightyear = 332

§

Line = 333

§

Longhundredweight = 335

§

Longquarter = 336

§

Lusec = 337

§

Mass_earth = 338

§

Mass_moon = 339

§

Mass_sun = 340

§

Mach = 341

§

Marineleague = 342

§

Maxwell = 343

§

Metriccarat = 344

§

Mgd = 345

§

Millihenry = 346

§

Mil = 347

§

Millennium = 348

§

Minersinch = 349

§

Minim = 350

§

Miles_per_gallon = 351

§

Miles_per_hour = 352

§

Nail = 353

§

Nmile = 354

§

Nit = 355

§

Noggin = 356

§

Nox = 357

§

Oersted = 358

§

Pace = 359

§

Pair = 360

§

Palm = 361

§

Parasang = 362

§

Parsec = 363

§

Pascal = 364

§

Perch = 365

§

Phot = 366

§

Pica = 367

§

Pieze = 368

§

Pipe = 369

§

Point = 370

§

Poise = 371

§

Pole = 372

§

Pond = 373

§

Poundal = 374

§

Pdl = 375

§

Proof = 376

§

Psi = 377

§

Quarter = 378

§

Quartersection = 379

§

Quintal = 380

§

Quire = 381

§

Radious_earth = 382

§

Adious_moon = 383

§

Adious_sun = 384

§

Rackunit = 385

§

Rad = 386

§

Ream = 387

§

Registerton = 388

§

Rem = 389

§

Rhe = 390

§

Rontgen = 391

§

Roentgen = 392

§

Rood = 393

§

Rope = 394

§

Rutherford = 395

§

Rydbergconst = 396

§

Rydberg = 397

§

Sabin = 398

§

Sack = 399

§

Score = 400

§

Seam = 401

§

Section = 402

§

Shed = 403

§

Shippington = 404

§

Shorthundredweight = 405

§

Shortquarter = 406

§

Siemens = 407

§

Sigma = 408

§

Skein = 409

§

Skot = 410

§

Slug = 411

§

Smoot = 412

§

Span = 413

§

Spat = 414

§

Spindle = 415

§

Square = 416

§

Stere = 417

§

Sthene = 418

§

Stilb = 419

§

Sb = 420

§

Stoke = 421

§

Stone = 422

§

Strike = 423

§

Surveyfoot = 424

§

Surveyyard = 425

§

Surveyorschain = 426

§

Tablespoon = 428

§

Teaspoon = 429

§

Tesla = 430

§

Therm = 431

§

Thermie = 432

§

Timberfoot = 433

§

Tnt = 434

§

Tonne = 435

§

Torr = 436

§

Township = 437

§

Tsp = 438

§

Tun = 439

§

Water = 440

§

Wey = 441

§

Weymass = 442

§

X = 443

§

K = 444

§

Degc = 445

§

Brewster = 446

§

Drachm = 447

§

Poncelet = 448

§

Denier = 449

§

Tex = 450

§

Englishell = 451

§

Scottishell = 452

§

Flemishell = 453

§

Bohrradius = 454

§

Becquerel = 455

§

Fresnel = 456

§

Statcoul = 457

§

Statamp = 458

§

Statvolt = 459

§

Statcoulomb = 460

§

Statampere = 461

§

Debye = 462

§

Pulsatance = 463

§

Rpm = 464

§

Rps = 465

§

Kilohm = 466

§

Megohm = 467

§

Siderealyear = 468

§

Siderealday = 469

§

Siderealhour = 470

§

Lunarmonth = 471

§

Synodicmonth = 472

§

Siderealmonth = 473

§

Tropicalyear = 474

§

Solaryear = 475

§

Lunaryear = 476

§

Cran = 477

§

Kip = 478

§

Frenchfoot = 479

§

Toise = 480

§

Sievert = 481

§

Candle = 482

§

Militarypace = 483

§

Iudiptheria = 484

§

Iupenicillin = 485

§

Iuinsulin = 486

§

Cottonyarncount = 487

§

Linenyarncount = 488

§

Worstedyarncount = 489

§

Metricyarncount = 490

§

Jewlerspoint = 491

Implementations§

Source§

impl Unit

Source

pub fn is_null(&self) -> bool

Useful to skip serialization of the default value.

Trait Implementations§

Source§

impl Clone for Unit

Source§

fn clone(&self) -> Unit

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 Unit

Source§

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

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

impl Default for Unit

Source§

fn default() -> Unit

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

impl<'de> Deserialize<'de> for Unit

Source§

fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Hash for Unit

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 Unit

Source§

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

Source§

fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl TryFrom<u16> for Unit

Source§

type Error = TryFromPrimitiveError<Unit>

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

fn try_from(number: u16) -> Result<Self, TryFromPrimitiveError<Self>>

Performs the conversion.
Source§

impl TryFromPrimitive for Unit

Source§

impl Copy for Unit

Source§

impl Eq for Unit

Source§

impl StructuralPartialEq for Unit

Auto Trait Implementations§

§

impl Freeze for Unit

§

impl RefUnwindSafe for Unit

§

impl Send for Unit

§

impl Sync for Unit

§

impl Unpin for Unit

§

impl UnwindSafe for Unit

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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<T> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,