Token

Enum Token 

Source
#[repr(i32)]
pub enum Token {
Show 494 variants Nul = 0, Ascii37 = 37, Ascii40 = 40, Ascii41 = 41, Ascii42 = 42, Ascii43 = 43, Ascii44 = 44, Ascii45 = 45, Ascii46 = 46, Ascii47 = 47, Ascii58 = 58, Ascii59 = 59, Ascii60 = 60, Ascii61 = 61, Ascii62 = 62, Ascii63 = 63, Ascii91 = 91, Ascii92 = 92, Ascii93 = 93, Ascii94 = 94, Ident = 258, Uident = 259, Fconst = 260, Sconst = 261, Usconst = 262, Bconst = 263, Xconst = 264, Op = 265, Iconst = 266, Param = 267, Typecast = 268, DotDot = 269, ColonEquals = 270, EqualsGreater = 271, LessEquals = 272, GreaterEquals = 273, NotEquals = 274, SqlComment = 275, CComment = 276, AbortP = 277, AbsoluteP = 278, Access = 279, Action = 280, AddP = 281, Admin = 282, After = 283, Aggregate = 284, All = 285, Also = 286, Alter = 287, Always = 288, Analyse = 289, Analyze = 290, And = 291, Any = 292, Array = 293, As = 294, Asc = 295, Assertion = 296, Assignment = 297, Asymmetric = 298, At = 299, Attach = 300, Attribute = 301, Authorization = 302, Backward = 303, Before = 304, BeginP = 305, Between = 306, Bigint = 307, Binary = 308, Bit = 309, BooleanP = 310, Both = 311, By = 312, Cache = 313, Call = 314, Called = 315, Cascade = 316, Cascaded = 317, Case = 318, Cast = 319, CatalogP = 320, Chain = 321, CharP = 322, Character = 323, Characteristics = 324, Check = 325, Checkpoint = 326, Class = 327, Close = 328, Cluster = 329, Coalesce = 330, Collate = 331, Collation = 332, Column = 333, Columns = 334, Comment = 335, Comments = 336, Commit = 337, Committed = 338, Concurrently = 339, Configuration = 340, Conflict = 341, Connection = 342, Constraint = 343, Constraints = 344, ContentP = 345, ContinueP = 346, ConversionP = 347, Copy = 348, Cost = 349, Create = 350, Cross = 351, Csv = 352, Cube = 353, CurrentP = 354, CurrentCatalog = 355, CurrentDate = 356, CurrentRole = 357, CurrentSchema = 358, CurrentTime = 359, CurrentTimestamp = 360, CurrentUser = 361, Cursor = 362, Cycle = 363, DataP = 364, Database = 365, DayP = 366, Deallocate = 367, Dec = 368, DecimalP = 369, Declare = 370, Default = 371, Defaults = 372, Deferrable = 373, Deferred = 374, Definer = 375, DeleteP = 376, Delimiter = 377, Delimiters = 378, Depends = 379, Desc = 380, Detach = 381, Dictionary = 382, DisableP = 383, Discard = 384, Distinct = 385, Do = 386, DocumentP = 387, DomainP = 388, DoubleP = 389, Drop = 390, Each = 391, Else = 392, EnableP = 393, Encoding = 394, Encrypted = 395, EndP = 396, EnumP = 397, Escape = 398, Event = 399, Except = 400, Exclude = 401, Excluding = 402, Exclusive = 403, Execute = 404, Exists = 405, Explain = 406, Expression = 407, Extension = 408, External = 409, Extract = 410, FalseP = 411, Family = 412, Fetch = 413, Filter = 414, FirstP = 415, FloatP = 416, Following = 417, For = 418, Force = 419, Foreign = 420, Forward = 421, Freeze = 422, From = 423, Full = 424, Function = 425, Functions = 426, Generated = 427, Global = 428, Grant = 429, Granted = 430, Greatest = 431, GroupP = 432, Grouping = 433, Groups = 434, Handler = 435, Having = 436, HeaderP = 437, Hold = 438, HourP = 439, IdentityP = 440, IfP = 441, Ilike = 442, Immediate = 443, Immutable = 444, ImplicitP = 445, ImportP = 446, InP = 447, Include = 448, Including = 449, Increment = 450, Index = 451, Indexes = 452, Inherit = 453, Inherits = 454, Initially = 455, InlineP = 456, InnerP = 457, Inout = 458, InputP = 459, Insensitive = 460, Insert = 461, Instead = 462, IntP = 463, Integer = 464, Intersect = 465, Interval = 466, Into = 467, Invoker = 468, Is = 469, Isnull = 470, Isolation = 471, Join = 472, Key = 473, Label = 474, Language = 475, LargeP = 476, LastP = 477, LateralP = 478, Leading = 479, Leakproof = 480, Least = 481, Left = 482, Level = 483, Like = 484, Limit = 485, Listen = 486, Load = 487, Local = 488, Localtime = 489, Localtimestamp = 490, Location = 491, LockP = 492, Locked = 493, Logged = 494, Mapping = 495, Match = 496, Materialized = 497, Maxvalue = 498, Method = 499, MinuteP = 500, Minvalue = 501, Mode = 502, MonthP = 503, Move = 504, NameP = 505, Names = 506, National = 507, Natural = 508, Nchar = 509, New = 510, Next = 511, Nfc = 512, Nfd = 513, Nfkc = 514, Nfkd = 515, No = 516, None = 517, Normalize = 518, Normalized = 519, Not = 520, Nothing = 521, Notify = 522, Notnull = 523, Nowait = 524, NullP = 525, Nullif = 526, NullsP = 527, Numeric = 528, ObjectP = 529, Of = 530, Off = 531, Offset = 532, Oids = 533, Old = 534, On = 535, Only = 536, Operator = 537, Option = 538, Options = 539, Or = 540, Order = 541, Ordinality = 542, Others = 543, OutP = 544, OuterP = 545, Over = 546, Overlaps = 547, Overlay = 548, Overriding = 549, Owned = 550, Owner = 551, Parallel = 552, Parser = 553, Partial = 554, Partition = 555, Passing = 556, Password = 557, Placing = 558, Plans = 559, Policy = 560, Position = 561, Preceding = 562, Precision = 563, Preserve = 564, Prepare = 565, Prepared = 566, Primary = 567, Prior = 568, Privileges = 569, Procedural = 570, Procedure = 571, Procedures = 572, Program = 573, Publication = 574, Quote = 575, Range = 576, Read = 577, Real = 578, Reassign = 579, Recheck = 580, Recursive = 581, Ref = 582, References = 583, Referencing = 584, Refresh = 585, Reindex = 586, RelativeP = 587, Release = 588, Rename = 589, Repeatable = 590, Replace = 591, Replica = 592, Reset = 593, Restart = 594, Restrict = 595, Returning = 596, Returns = 597, Revoke = 598, Right = 599, Role = 600, Rollback = 601, Rollup = 602, Routine = 603, Routines = 604, Row = 605, Rows = 606, Rule = 607, Savepoint = 608, Schema = 609, Schemas = 610, Scroll = 611, Search = 612, SecondP = 613, Security = 614, Select = 615, Sequence = 616, Sequences = 617, Serializable = 618, Server = 619, Session = 620, SessionUser = 621, Set = 622, Sets = 623, Setof = 624, Share = 625, Show = 626, Similar = 627, Simple = 628, Skip = 629, Smallint = 630, Snapshot = 631, Some = 632, SqlP = 633, Stable = 634, StandaloneP = 635, Start = 636, Statement = 637, Statistics = 638, Stdin = 639, Stdout = 640, Storage = 641, Stored = 642, StrictP = 643, StripP = 644, Subscription = 645, Substring = 646, Support = 647, Symmetric = 648, Sysid = 649, SystemP = 650, Table = 651, Tables = 652, Tablesample = 653, Tablespace = 654, Temp = 655, Template = 656, Temporary = 657, TextP = 658, Then = 659, Ties = 660, Time = 661, Timestamp = 662, To = 663, Trailing = 664, Transaction = 665, Transform = 666, Treat = 667, Trigger = 668, Trim = 669, TrueP = 670, Truncate = 671, Trusted = 672, TypeP = 673, TypesP = 674, Uescape = 675, Unbounded = 676, Uncommitted = 677, Unencrypted = 678, Union = 679, Unique = 680, Unknown = 681, Unlisten = 682, Unlogged = 683, Until = 684, Update = 685, User = 686, Using = 687, Vacuum = 688, Valid = 689, Validate = 690, Validator = 691, ValueP = 692, Values = 693, Varchar = 694, Variadic = 695, Varying = 696, Verbose = 697, VersionP = 698, View = 699, Views = 700, Volatile = 701, When = 702, Where = 703, WhitespaceP = 704, Window = 705, With = 706, Within = 707, Without = 708, Work = 709, Wrapper = 710, Write = 711, XmlP = 712, Xmlattributes = 713, Xmlconcat = 714, Xmlelement = 715, Xmlexists = 716, Xmlforest = 717, Xmlnamespaces = 718, Xmlparse = 719, Xmlpi = 720, Xmlroot = 721, Xmlserialize = 722, Xmltable = 723, YearP = 724, YesP = 725, Zone = 726, NotLa = 727, NullsLa = 728, WithLa = 729, Postfixop = 730, Uminus = 731,
}

Variants§

§

Nul = 0

§

Ascii37 = 37

Single-character tokens that are returned 1:1 (identical with “self” list in scan.l) Either supporting syntax, or single-character operators (some can be both) Also see https://www.postgresql.org/docs/12/sql-syntax-lexical.html#SQL-SYNTAX-SPECIAL-CHARS

“%”

§

Ascii40 = 40

“(”

§

Ascii41 = 41

“)”

§

Ascii42 = 42

“*”

§

Ascii43 = 43

“+”

§

Ascii44 = 44

“,”

§

Ascii45 = 45

“-”

§

Ascii46 = 46

“.”

§

Ascii47 = 47

“/”

§

Ascii58 = 58

“:”

§

Ascii59 = 59

“;”

§

Ascii60 = 60

“<”

§

Ascii61 = 61

“=”

§

Ascii62 = 62

“>”

§

Ascii63 = 63

“?”

§

Ascii91 = 91

“[”

§

Ascii92 = 92

“"

§

Ascii93 = 93

“]”

§

Ascii94 = 94

“^”

§

Ident = 258

Named tokens in scan.l

§

Uident = 259

§

Fconst = 260

§

Sconst = 261

§

Usconst = 262

§

Bconst = 263

§

Xconst = 264

§

Op = 265

§

Iconst = 266

§

Param = 267

§

Typecast = 268

§

DotDot = 269

§

ColonEquals = 270

§

EqualsGreater = 271

§

LessEquals = 272

§

GreaterEquals = 273

§

NotEquals = 274

§

SqlComment = 275

§

CComment = 276

§

AbortP = 277

§

AbsoluteP = 278

§

Access = 279

§

Action = 280

§

AddP = 281

§

Admin = 282

§

After = 283

§

Aggregate = 284

§

All = 285

§

Also = 286

§

Alter = 287

§

Always = 288

§

Analyse = 289

§

Analyze = 290

§

And = 291

§

Any = 292

§

Array = 293

§

As = 294

§

Asc = 295

§

Assertion = 296

§

Assignment = 297

§

Asymmetric = 298

§

At = 299

§

Attach = 300

§

Attribute = 301

§

Authorization = 302

§

Backward = 303

§

Before = 304

§

BeginP = 305

§

Between = 306

§

Bigint = 307

§

Binary = 308

§

Bit = 309

§

BooleanP = 310

§

Both = 311

§

By = 312

§

Cache = 313

§

Call = 314

§

Called = 315

§

Cascade = 316

§

Cascaded = 317

§

Case = 318

§

Cast = 319

§

CatalogP = 320

§

Chain = 321

§

CharP = 322

§

Character = 323

§

Characteristics = 324

§

Check = 325

§

Checkpoint = 326

§

Class = 327

§

Close = 328

§

Cluster = 329

§

Coalesce = 330

§

Collate = 331

§

Collation = 332

§

Column = 333

§

Columns = 334

§

Comment = 335

§

Comments = 336

§

Commit = 337

§

Committed = 338

§

Concurrently = 339

§

Configuration = 340

§

Conflict = 341

§

Connection = 342

§

Constraint = 343

§

Constraints = 344

§

ContentP = 345

§

ContinueP = 346

§

ConversionP = 347

§

Copy = 348

§

Cost = 349

§

Create = 350

§

Cross = 351

§

Csv = 352

§

Cube = 353

§

CurrentP = 354

§

CurrentCatalog = 355

§

CurrentDate = 356

§

CurrentRole = 357

§

CurrentSchema = 358

§

CurrentTime = 359

§

CurrentTimestamp = 360

§

CurrentUser = 361

§

Cursor = 362

§

Cycle = 363

§

DataP = 364

§

Database = 365

§

DayP = 366

§

Deallocate = 367

§

Dec = 368

§

DecimalP = 369

§

Declare = 370

§

Default = 371

§

Defaults = 372

§

Deferrable = 373

§

Deferred = 374

§

Definer = 375

§

DeleteP = 376

§

Delimiter = 377

§

Delimiters = 378

§

Depends = 379

§

Desc = 380

§

Detach = 381

§

Dictionary = 382

§

DisableP = 383

§

Discard = 384

§

Distinct = 385

§

Do = 386

§

DocumentP = 387

§

DomainP = 388

§

DoubleP = 389

§

Drop = 390

§

Each = 391

§

Else = 392

§

EnableP = 393

§

Encoding = 394

§

Encrypted = 395

§

EndP = 396

§

EnumP = 397

§

Escape = 398

§

Event = 399

§

Except = 400

§

Exclude = 401

§

Excluding = 402

§

Exclusive = 403

§

Execute = 404

§

Exists = 405

§

Explain = 406

§

Expression = 407

§

Extension = 408

§

External = 409

§

Extract = 410

§

FalseP = 411

§

Family = 412

§

Fetch = 413

§

Filter = 414

§

FirstP = 415

§

FloatP = 416

§

Following = 417

§

For = 418

§

Force = 419

§

Foreign = 420

§

Forward = 421

§

Freeze = 422

§

From = 423

§

Full = 424

§

Function = 425

§

Functions = 426

§

Generated = 427

§

Global = 428

§

Grant = 429

§

Granted = 430

§

Greatest = 431

§

GroupP = 432

§

Grouping = 433

§

Groups = 434

§

Handler = 435

§

Having = 436

§

HeaderP = 437

§

Hold = 438

§

HourP = 439

§

IdentityP = 440

§

IfP = 441

§

Ilike = 442

§

Immediate = 443

§

Immutable = 444

§

ImplicitP = 445

§

ImportP = 446

§

InP = 447

§

Include = 448

§

Including = 449

§

Increment = 450

§

Index = 451

§

Indexes = 452

§

Inherit = 453

§

Inherits = 454

§

Initially = 455

§

InlineP = 456

§

InnerP = 457

§

Inout = 458

§

InputP = 459

§

Insensitive = 460

§

Insert = 461

§

Instead = 462

§

IntP = 463

§

Integer = 464

§

Intersect = 465

§

Interval = 466

§

Into = 467

§

Invoker = 468

§

Is = 469

§

Isnull = 470

§

Isolation = 471

§

Join = 472

§

Key = 473

§

Label = 474

§

Language = 475

§

LargeP = 476

§

LastP = 477

§

LateralP = 478

§

Leading = 479

§

Leakproof = 480

§

Least = 481

§

Left = 482

§

Level = 483

§

Like = 484

§

Limit = 485

§

Listen = 486

§

Load = 487

§

Local = 488

§

Localtime = 489

§

Localtimestamp = 490

§

Location = 491

§

LockP = 492

§

Locked = 493

§

Logged = 494

§

Mapping = 495

§

Match = 496

§

Materialized = 497

§

Maxvalue = 498

§

Method = 499

§

MinuteP = 500

§

Minvalue = 501

§

Mode = 502

§

MonthP = 503

§

Move = 504

§

NameP = 505

§

Names = 506

§

National = 507

§

Natural = 508

§

Nchar = 509

§

New = 510

§

Next = 511

§

Nfc = 512

§

Nfd = 513

§

Nfkc = 514

§

Nfkd = 515

§

No = 516

§

None = 517

§

Normalize = 518

§

Normalized = 519

§

Not = 520

§

Nothing = 521

§

Notify = 522

§

Notnull = 523

§

Nowait = 524

§

NullP = 525

§

Nullif = 526

§

NullsP = 527

§

Numeric = 528

§

ObjectP = 529

§

Of = 530

§

Off = 531

§

Offset = 532

§

Oids = 533

§

Old = 534

§

On = 535

§

Only = 536

§

Operator = 537

§

Option = 538

§

Options = 539

§

Or = 540

§

Order = 541

§

Ordinality = 542

§

Others = 543

§

OutP = 544

§

OuterP = 545

§

Over = 546

§

Overlaps = 547

§

Overlay = 548

§

Overriding = 549

§

Owned = 550

§

Owner = 551

§

Parallel = 552

§

Parser = 553

§

Partial = 554

§

Partition = 555

§

Passing = 556

§

Password = 557

§

Placing = 558

§

Plans = 559

§

Policy = 560

§

Position = 561

§

Preceding = 562

§

Precision = 563

§

Preserve = 564

§

Prepare = 565

§

Prepared = 566

§

Primary = 567

§

Prior = 568

§

Privileges = 569

§

Procedural = 570

§

Procedure = 571

§

Procedures = 572

§

Program = 573

§

Publication = 574

§

Quote = 575

§

Range = 576

§

Read = 577

§

Real = 578

§

Reassign = 579

§

Recheck = 580

§

Recursive = 581

§

Ref = 582

§

References = 583

§

Referencing = 584

§

Refresh = 585

§

Reindex = 586

§

RelativeP = 587

§

Release = 588

§

Rename = 589

§

Repeatable = 590

§

Replace = 591

§

Replica = 592

§

Reset = 593

§

Restart = 594

§

Restrict = 595

§

Returning = 596

§

Returns = 597

§

Revoke = 598

§

Right = 599

§

Role = 600

§

Rollback = 601

§

Rollup = 602

§

Routine = 603

§

Routines = 604

§

Row = 605

§

Rows = 606

§

Rule = 607

§

Savepoint = 608

§

Schema = 609

§

Schemas = 610

§

Scroll = 611

§

Search = 612

§

SecondP = 613

§

Security = 614

§

Select = 615

§

Sequence = 616

§

Sequences = 617

§

Serializable = 618

§

Server = 619

§

Session = 620

§

SessionUser = 621

§

Set = 622

§

Sets = 623

§

Setof = 624

§

Share = 625

§

Show = 626

§

Similar = 627

§

Simple = 628

§

Skip = 629

§

Smallint = 630

§

Snapshot = 631

§

Some = 632

§

SqlP = 633

§

Stable = 634

§

StandaloneP = 635

§

Start = 636

§

Statement = 637

§

Statistics = 638

§

Stdin = 639

§

Stdout = 640

§

Storage = 641

§

Stored = 642

§

StrictP = 643

§

StripP = 644

§

Subscription = 645

§

Substring = 646

§

Support = 647

§

Symmetric = 648

§

Sysid = 649

§

SystemP = 650

§

Table = 651

§

Tables = 652

§

Tablesample = 653

§

Tablespace = 654

§

Temp = 655

§

Template = 656

§

Temporary = 657

§

TextP = 658

§

Then = 659

§

Ties = 660

§

Time = 661

§

Timestamp = 662

§

To = 663

§

Trailing = 664

§

Transaction = 665

§

Transform = 666

§

Treat = 667

§

Trigger = 668

§

Trim = 669

§

TrueP = 670

§

Truncate = 671

§

Trusted = 672

§

TypeP = 673

§

TypesP = 674

§

Uescape = 675

§

Unbounded = 676

§

Uncommitted = 677

§

Unencrypted = 678

§

Union = 679

§

Unique = 680

§

Unknown = 681

§

Unlisten = 682

§

Unlogged = 683

§

Until = 684

§

Update = 685

§

User = 686

§

Using = 687

§

Vacuum = 688

§

Valid = 689

§

Validate = 690

§

Validator = 691

§

ValueP = 692

§

Values = 693

§

Varchar = 694

§

Variadic = 695

§

Varying = 696

§

Verbose = 697

§

VersionP = 698

§

View = 699

§

Views = 700

§

Volatile = 701

§

When = 702

§

Where = 703

§

WhitespaceP = 704

§

Window = 705

§

With = 706

§

Within = 707

§

Without = 708

§

Work = 709

§

Wrapper = 710

§

Write = 711

§

XmlP = 712

§

Xmlattributes = 713

§

Xmlconcat = 714

§

Xmlelement = 715

§

Xmlexists = 716

§

Xmlforest = 717

§

Xmlnamespaces = 718

§

Xmlparse = 719

§

Xmlpi = 720

§

Xmlroot = 721

§

Xmlserialize = 722

§

Xmltable = 723

§

YearP = 724

§

YesP = 725

§

Zone = 726

§

NotLa = 727

§

NullsLa = 728

§

WithLa = 729

§

Postfixop = 730

§

Uminus = 731

Implementations§

Source§

impl Token

Source

pub fn is_valid(value: i32) -> bool

Returns true if value is a variant of Token.

Source

pub fn from_i32(value: i32) -> Option<Token>

Converts an i32 to a Token, or None if value is not a valid variant.

Trait Implementations§

Source§

impl Clone for Token

Source§

fn clone(&self) -> Token

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 Token

Source§

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

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

impl Default for Token

Source§

fn default() -> Token

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

impl From<Token> for i32

Source§

fn from(value: Token) -> i32

Converts to this type from the input type.
Source§

impl Hash for Token

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 Ord for Token

Source§

fn cmp(&self, other: &Token) -> 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 Token

Source§

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

Source§

fn partial_cmp(&self, other: &Token) -> 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 Token

Source§

impl Eq for Token

Source§

impl StructuralPartialEq for Token

Auto Trait Implementations§

§

impl Freeze for Token

§

impl RefUnwindSafe for Token

§

impl Send for Token

§

impl Sync for Token

§

impl Unpin for Token

§

impl UnwindSafe for Token

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.