Skip to main content

CSharpElementType

Enum CSharpElementType 

Source
#[repr(u16)]
pub enum CSharpElementType {
Show 289 variants Whitespace = 0, Newline = 1, Comment = 2, Identifier = 3, Number = 4, String = 5, Character = 6, VerbatimString = 7, InterpolatedString = 8, NumberLiteral = 9, StringLiteral = 10, CharLiteral = 11, Abstract = 12, As = 13, Base = 14, Bool = 15, Break = 16, Byte = 17, Case = 18, Catch = 19, Char = 20, Checked = 21, Class = 22, Const = 23, Continue = 24, Decimal = 25, Default = 26, Delegate = 27, Do = 28, Double = 29, Else = 30, Enum = 31, Event = 32, Explicit = 33, Extern = 34, False = 35, Finally = 36, Fixed = 37, Float = 38, For = 39, Foreach = 40, Goto = 41, If = 42, Implicit = 43, In = 44, Int = 45, Interface = 46, Internal = 47, Is = 48, Lock = 49, Long = 50, Namespace = 51, New = 52, Null = 53, Object = 54, Operator = 55, Out = 56, Override = 57, Params = 58, Private = 59, Protected = 60, Public = 61, Readonly = 62, Record = 63, Ref = 64, Return = 65, Sbyte = 66, Sealed = 67, Short = 68, Sizeof = 69, Stackalloc = 70, Static = 71, Struct = 72, Switch = 73, This = 74, Throw = 75, True = 76, Try = 77, Typeof = 78, Uint = 79, Ulong = 80, Unchecked = 81, Unsafe = 82, Ushort = 83, Using = 84, Virtual = 85, Void = 86, Volatile = 87, While = 88, AbstractKeyword = 89, AsKeyword = 90, BaseKeyword = 91, BoolKeyword = 92, BreakKeyword = 93, ByteKeyword = 94, CaseKeyword = 95, CatchKeyword = 96, CharKeyword = 97, CheckedKeyword = 98, ClassKeyword = 99, ConstKeyword = 100, ContinueKeyword = 101, DecimalKeyword = 102, DefaultKeyword = 103, DelegateKeyword = 104, DoKeyword = 105, DoubleKeyword = 106, ElseKeyword = 107, EnumKeyword = 108, EventKeyword = 109, ExplicitKeyword = 110, ExternKeyword = 111, FalseKeyword = 112, FinallyKeyword = 113, FixedKeyword = 114, FloatKeyword = 115, ForKeyword = 116, ForeachKeyword = 117, GotoKeyword = 118, IfKeyword = 119, ImplicitKeyword = 120, InKeyword = 121, IntKeyword = 122, InterfaceKeyword = 123, InternalKeyword = 124, IsKeyword = 125, LockKeyword = 126, LongKeyword = 127, NamespaceKeyword = 128, NewKeyword = 129, NullKeyword = 130, ObjectKeyword = 131, OperatorKeyword = 132, OutKeyword = 133, OverrideKeyword = 134, ParamsKeyword = 135, PrivateKeyword = 136, ProtectedKeyword = 137, PublicKeyword = 138, ReadonlyKeyword = 139, RefKeyword = 140, ReturnKeyword = 141, SbyteKeyword = 142, SealedKeyword = 143, ShortKeyword = 144, SizeofKeyword = 145, StackallocKeyword = 146, StaticKeyword = 147, StringKeyword = 148, StructKeyword = 149, SwitchKeyword = 150, ThisKeyword = 151, ThrowKeyword = 152, TrueKeyword = 153, TryKeyword = 154, TypeofKeyword = 155, UintKeyword = 156, UlongKeyword = 157, UncheckedKeyword = 158, UnsafeKeyword = 159, UshortKeyword = 160, UsingKeyword = 161, VirtualKeyword = 162, VoidKeyword = 163, VolatileKeyword = 164, WhileKeyword = 165, AddKeyword = 166, AliasKeyword = 167, AscendingKeyword = 168, ByKeyword = 169, DescendingKeyword = 170, FromKeyword = 171, GetKeyword = 172, GlobalKeyword = 173, GroupKeyword = 174, IntoKeyword = 175, JoinKeyword = 176, LetKeyword = 177, OrderbyKeyword = 178, PartialKeyword = 179, RemoveKeyword = 180, SelectKeyword = 181, SetKeyword = 182, ValueKeyword = 183, VarKeyword = 184, WhereKeyword = 185, YieldKeyword = 186, Plus = 187, Minus = 188, Star = 189, Slash = 190, Percent = 191, Ampersand = 192, Pipe = 193, Caret = 194, Tilde = 195, BitAnd = 196, BitOr = 197, BitXor = 198, BitNot = 199, LeftShift = 200, RightShift = 201, Equal = 202, NotEqual = 203, Less = 204, LessEqual = 205, Greater = 206, GreaterEqual = 207, LogicalAnd = 208, LogicalOr = 209, LogicalNot = 210, Question = 211, QuestionQuestion = 212, Increment = 213, Decrement = 214, Arrow = 215, Lambda = 216, Assign = 217, PlusAssign = 218, MinusAssign = 219, StarAssign = 220, SlashAssign = 221, PercentAssign = 222, AmpersandAssign = 223, PipeAssign = 224, CaretAssign = 225, LeftShiftAssign = 226, RightShiftAssign = 227, QuestionQuestionAssign = 228, AndAssign = 229, OrAssign = 230, XorAssign = 231, LeftParen = 232, RightParen = 233, LeftBracket = 234, RightBracket = 235, LeftBrace = 236, RightBrace = 237, Comma = 238, Semicolon = 239, Colon = 240, ColonColon = 241, Dot = 242, QuestionDot = 243, At = 244, Hash = 245, Dollar = 246, Eof = 247, Error = 248, IfStatement = 249, WhileStatement = 250, ForStatement = 251, Block = 252, ReturnStatement = 253, MethodDeclaration = 254, PropertyDeclaration = 255, FieldDeclaration = 256, IndexerDeclaration = 257, IdentifierName = 258, LiteralExpression = 259, BinaryExpression = 260, InvocationExpression = 261, ElementAccessExpression = 262, MemberAccessExpression = 263, AssignmentExpression = 264, BreakStatement = 265, ContinueStatement = 266, ExpressionStatement = 267, ForeachStatement = 268, NamespaceDeclaration = 269, UsingDirective = 270, ClassDeclaration = 271, InterfaceDeclaration = 272, StructDeclaration = 273, EnumDeclaration = 274, RecordDeclaration = 275, DelegateDeclaration = 276, EventDeclaration = 277, AwaitExpression = 278, ParenthesizedExpression = 279, ThisExpression = 280, BaseExpression = 281, ObjectCreationExpression = 282, LambdaExpression = 283, SwitchStatement = 284, TryStatement = 285, AttributeList = 286, Attribute = 287, Root = 288,
}
Expand description

Element types for the C# parser.

Variants§

§

Whitespace = 0

Whitespace characters.

§

Newline = 1

Line breaks.

§

Comment = 2

Comments.

§

Identifier = 3

An identifier.

§

Number = 4

A numeric literal.

§

String = 5

A string literal.

§

Character = 6

A character literal.

§

VerbatimString = 7

A verbatim string literal (e.g., @"...").

§

InterpolatedString = 8

An interpolated string literal (e.g., $"...").

§

NumberLiteral = 9

A number literal (generic).

§

StringLiteral = 10

A string literal (generic).

§

CharLiteral = 11

A character literal (generic).

§

Abstract = 12

The abstract keyword.

§

As = 13

The as keyword.

§

Base = 14

The base keyword.

§

Bool = 15

The bool keyword.

§

Break = 16

The break keyword.

§

Byte = 17

The byte keyword.

§

Case = 18

The case keyword.

§

Catch = 19

The catch keyword.

§

Char = 20

The char keyword.

§

Checked = 21

The checked keyword.

§

Class = 22

The class keyword.

§

Const = 23

The const keyword.

§

Continue = 24

The continue keyword.

§

Decimal = 25

The decimal keyword.

§

Default = 26

The default keyword.

§

Delegate = 27

The delegate keyword.

§

Do = 28

The do keyword.

§

Double = 29

The double keyword.

§

Else = 30

The else keyword.

§

Enum = 31

The enum keyword.

§

Event = 32

The event keyword.

§

Explicit = 33

The explicit keyword.

§

Extern = 34

The extern keyword.

§

False = 35

The false keyword.

§

Finally = 36

The finally keyword.

§

Fixed = 37

The fixed keyword.

§

Float = 38

The float keyword.

§

For = 39

The for keyword.

§

Foreach = 40

The foreach keyword.

§

Goto = 41

The goto keyword.

§

If = 42

The if keyword.

§

Implicit = 43

The implicit keyword.

§

In = 44

The in keyword.

§

Int = 45

The int keyword.

§

Interface = 46

The interface keyword.

§

Internal = 47

The internal keyword.

§

Is = 48

The is keyword.

§

Lock = 49

The lock keyword.

§

Long = 50

The long keyword.

§

Namespace = 51

The namespace keyword.

§

New = 52

The new keyword.

§

Null = 53

The null keyword.

§

Object = 54

The object keyword.

§

Operator = 55

The operator keyword.

§

Out = 56

The out keyword.

§

Override = 57

The override keyword.

§

Params = 58

The params keyword.

§

Private = 59

The private keyword.

§

Protected = 60

The protected keyword.

§

Public = 61

The public keyword.

§

Readonly = 62

The readonly keyword.

§

Record = 63

The record keyword.

§

Ref = 64

The ref keyword.

§

Return = 65

The return keyword.

§

Sbyte = 66

The sbyte keyword.

§

Sealed = 67

The sealed keyword.

§

Short = 68

The short keyword.

§

Sizeof = 69

The sizeof keyword.

§

Stackalloc = 70

The stackalloc keyword.

§

Static = 71

The static keyword.

§

Struct = 72

The struct keyword.

§

Switch = 73

The switch keyword.

§

This = 74

The this keyword.

§

Throw = 75

The throw keyword.

§

True = 76

The true keyword.

§

Try = 77

The try keyword.

§

Typeof = 78

The typeof keyword.

§

Uint = 79

The uint keyword.

§

Ulong = 80

The ulong keyword.

§

Unchecked = 81

The unchecked keyword.

§

Unsafe = 82

The unsafe keyword.

§

Ushort = 83

The ushort keyword.

§

Using = 84

The using keyword.

§

Virtual = 85

The virtual keyword.

§

Void = 86

The void keyword.

§

Volatile = 87

The volatile keyword.

§

While = 88

The while keyword.

§

AbstractKeyword = 89

Variant of abstract keyword.

§

AsKeyword = 90

Variant of as keyword.

§

BaseKeyword = 91

Variant of base keyword.

§

BoolKeyword = 92

Variant of bool keyword.

§

BreakKeyword = 93

Variant of break keyword.

§

ByteKeyword = 94

Variant of byte keyword.

§

CaseKeyword = 95

Variant of case keyword.

§

CatchKeyword = 96

Variant of catch keyword.

§

CharKeyword = 97

Variant of char keyword.

§

CheckedKeyword = 98

Variant of checked keyword.

§

ClassKeyword = 99

Variant of class keyword.

§

ConstKeyword = 100

Variant of const keyword.

§

ContinueKeyword = 101

Variant of continue keyword.

§

DecimalKeyword = 102

Variant of decimal keyword.

§

DefaultKeyword = 103

Variant of default keyword.

§

DelegateKeyword = 104

Variant of delegate keyword.

§

DoKeyword = 105

Variant of do keyword.

§

DoubleKeyword = 106

Variant of double keyword.

§

ElseKeyword = 107

Variant of else keyword.

§

EnumKeyword = 108

Variant of enum keyword.

§

EventKeyword = 109

Variant of event keyword.

§

ExplicitKeyword = 110

Variant of explicit keyword.

§

ExternKeyword = 111

Variant of extern keyword.

§

FalseKeyword = 112

Variant of false keyword.

§

FinallyKeyword = 113

Variant of finally keyword.

§

FixedKeyword = 114

Variant of fixed keyword.

§

FloatKeyword = 115

Variant of float keyword.

§

ForKeyword = 116

Variant of for keyword.

§

ForeachKeyword = 117

Variant of foreach keyword.

§

GotoKeyword = 118

Variant of goto keyword.

§

IfKeyword = 119

Variant of if keyword.

§

ImplicitKeyword = 120

Variant of implicit keyword.

§

InKeyword = 121

Variant of in keyword.

§

IntKeyword = 122

Variant of int keyword.

§

InterfaceKeyword = 123

Variant of interface keyword.

§

InternalKeyword = 124

Variant of internal keyword.

§

IsKeyword = 125

Variant of is keyword.

§

LockKeyword = 126

Variant of lock keyword.

§

LongKeyword = 127

Variant of long keyword.

§

NamespaceKeyword = 128

Variant of namespace keyword.

§

NewKeyword = 129

Variant of new keyword.

§

NullKeyword = 130

Variant of null keyword.

§

ObjectKeyword = 131

Variant of object keyword.

§

OperatorKeyword = 132

Variant of operator keyword.

§

OutKeyword = 133

Variant of out keyword.

§

OverrideKeyword = 134

Variant of override keyword.

§

ParamsKeyword = 135

Variant of params keyword.

§

PrivateKeyword = 136

Variant of private keyword.

§

ProtectedKeyword = 137

Variant of protected keyword.

§

PublicKeyword = 138

Variant of public keyword.

§

ReadonlyKeyword = 139

Variant of readonly keyword.

§

RefKeyword = 140

Variant of ref keyword.

§

ReturnKeyword = 141

Variant of return keyword.

§

SbyteKeyword = 142

Variant of sbyte keyword.

§

SealedKeyword = 143

Variant of sealed keyword.

§

ShortKeyword = 144

Variant of short keyword.

§

SizeofKeyword = 145

Variant of sizeof keyword.

§

StackallocKeyword = 146

Variant of stackalloc keyword.

§

StaticKeyword = 147

Variant of static keyword.

§

StringKeyword = 148

Variant of string keyword.

§

StructKeyword = 149

Variant of struct keyword.

§

SwitchKeyword = 150

Variant of switch keyword.

§

ThisKeyword = 151

Variant of this keyword.

§

ThrowKeyword = 152

Variant of throw keyword.

§

TrueKeyword = 153

Variant of true keyword.

§

TryKeyword = 154

Variant of try keyword.

§

TypeofKeyword = 155

Variant of typeof keyword.

§

UintKeyword = 156

Variant of uint keyword.

§

UlongKeyword = 157

Variant of ulong keyword.

§

UncheckedKeyword = 158

Variant of unchecked keyword.

§

UnsafeKeyword = 159

Variant of unsafe keyword.

§

UshortKeyword = 160

Variant of ushort keyword.

§

UsingKeyword = 161

Variant of using keyword.

§

VirtualKeyword = 162

Variant of virtual keyword.

§

VoidKeyword = 163

Variant of void keyword.

§

VolatileKeyword = 164

Variant of volatile keyword.

§

WhileKeyword = 165

Variant of while keyword.

§

AddKeyword = 166

The add keyword (contextual).

§

AliasKeyword = 167

The alias keyword (contextual).

§

AscendingKeyword = 168

The ascending keyword (contextual).

§

ByKeyword = 169

The by keyword (contextual).

§

DescendingKeyword = 170

The descending keyword (contextual).

§

FromKeyword = 171

The from keyword (contextual).

§

GetKeyword = 172

The get keyword (contextual).

§

GlobalKeyword = 173

The global keyword (contextual).

§

GroupKeyword = 174

The group keyword (contextual).

§

IntoKeyword = 175

The into keyword (contextual).

§

JoinKeyword = 176

The join keyword (contextual).

§

LetKeyword = 177

The let keyword (contextual).

§

OrderbyKeyword = 178

The orderby keyword (contextual).

§

PartialKeyword = 179

The partial keyword (contextual).

§

RemoveKeyword = 180

The remove keyword (contextual).

§

SelectKeyword = 181

The select keyword (contextual).

§

SetKeyword = 182

The set keyword (contextual).

§

ValueKeyword = 183

The value keyword (contextual).

§

VarKeyword = 184

The var keyword (contextual).

§

WhereKeyword = 185

The where keyword (contextual).

§

YieldKeyword = 186

The yield keyword (contextual).

§

Plus = 187

The + operator.

§

Minus = 188

The - operator.

§

Star = 189

The * operator.

§

Slash = 190

The / operator.

§

Percent = 191

The % operator.

§

Ampersand = 192

The & operator.

§

Pipe = 193

The | operator.

§

Caret = 194

The ^ operator.

§

Tilde = 195

The ~ operator.

§

BitAnd = 196

Bitwise AND operator.

§

BitOr = 197

Bitwise OR operator.

§

BitXor = 198

Bitwise XOR operator.

§

BitNot = 199

Bitwise NOT operator.

§

LeftShift = 200

Left shift operator (<<).

§

RightShift = 201

Right shift operator (>>).

§

Equal = 202

Equality operator (==).

§

NotEqual = 203

Inequality operator (!=).

§

Less = 204

Less than operator (<).

§

LessEqual = 205

Less than or equal operator (<=).

§

Greater = 206

Greater than operator (>).

§

GreaterEqual = 207

Greater than or equal operator (>=).

§

LogicalAnd = 208

Logical AND operator (&&).

§

LogicalOr = 209

Logical OR operator (||).

§

LogicalNot = 210

Logical NOT operator (!).

§

Question = 211

Question mark (?).

§

QuestionQuestion = 212

Null-coalescing operator (??).

§

Increment = 213

Increment operator (++).

§

Decrement = 214

Decrement operator (--).

§

Arrow = 215

Arrow operator (->).

§

Lambda = 216

Lambda operator (=>).

§

Assign = 217

Simple assignment operator (=).

§

PlusAssign = 218

Addition assignment operator (+=).

§

MinusAssign = 219

Subtraction assignment operator (-=).

§

StarAssign = 220

Multiplication assignment operator (*=).

§

SlashAssign = 221

Division assignment operator (/=).

§

PercentAssign = 222

Modulo assignment operator (%=).

§

AmpersandAssign = 223

Bitwise AND assignment operator (&=).

§

PipeAssign = 224

Bitwise OR assignment operator (|=).

§

CaretAssign = 225

Bitwise XOR assignment operator (^=).

§

LeftShiftAssign = 226

Left shift assignment operator (<<=).

§

RightShiftAssign = 227

Right shift assignment operator (>>=).

§

QuestionQuestionAssign = 228

Null-coalescing assignment operator (??=).

§

AndAssign = 229

Logical AND assignment operator (&&=).

§

OrAssign = 230

Logical OR assignment operator (||=).

§

XorAssign = 231

Logical XOR assignment operator (^=).

§

LeftParen = 232

Opening parenthesis (().

§

RightParen = 233

Closing parenthesis ()).

§

LeftBracket = 234

Opening bracket ([).

§

RightBracket = 235

Closing bracket (]).

§

LeftBrace = 236

Opening brace ({).

§

RightBrace = 237

Closing brace (}).

§

Comma = 238

Comma (,).

§

Semicolon = 239

Semicolon (;).

§

Colon = 240

Colon (:).

§

ColonColon = 241

Double colon (::).

§

Dot = 242

Dot (.).

§

QuestionDot = 243

Null-conditional operator (?.).

§

At = 244

At sign (@).

§

Hash = 245

Hash sign (#).

§

Dollar = 246

Dollar sign ($).

§

Eof = 247

End of file.

§

Error = 248

An error token.

§

IfStatement = 249

An if statement.

§

WhileStatement = 250

A while statement.

§

ForStatement = 251

A for statement.

§

Block = 252

A block of statements.

§

ReturnStatement = 253

A return statement.

§

MethodDeclaration = 254

A method declaration.

§

PropertyDeclaration = 255

A property declaration.

§

FieldDeclaration = 256

A field declaration.

§

IndexerDeclaration = 257

An indexer declaration.

§

IdentifierName = 258

An identifier name.

§

LiteralExpression = 259

A literal expression.

§

BinaryExpression = 260

A binary expression.

§

InvocationExpression = 261

An invocation expression.

§

ElementAccessExpression = 262

An element access expression.

§

MemberAccessExpression = 263

A member access expression.

§

AssignmentExpression = 264

An assignment expression.

§

BreakStatement = 265

A break statement.

§

ContinueStatement = 266

A continue statement.

§

ExpressionStatement = 267

An expression statement.

§

ForeachStatement = 268

A foreach statement.

§

NamespaceDeclaration = 269

A namespace declaration.

§

UsingDirective = 270

A using directive.

§

ClassDeclaration = 271

A class declaration.

§

InterfaceDeclaration = 272

An interface declaration.

§

StructDeclaration = 273

A struct declaration.

§

EnumDeclaration = 274

An enum declaration.

§

RecordDeclaration = 275

A record declaration.

§

DelegateDeclaration = 276

A delegate declaration.

§

EventDeclaration = 277

An event declaration.

§

AwaitExpression = 278

An await expression.

§

ParenthesizedExpression = 279

A parenthesized expression.

§

ThisExpression = 280

A this expression.

§

BaseExpression = 281

A base expression.

§

ObjectCreationExpression = 282

An object creation expression.

§

LambdaExpression = 283

A lambda expression.

§

SwitchStatement = 284

A switch statement.

§

TryStatement = 285

A try statement.

§

AttributeList = 286

An attribute list.

§

Attribute = 287

An attribute.

§

Root = 288

The root of the document.

Implementations§

Source§

impl CSharpElementType

Source

pub fn is_keyword(&self) -> bool

Returns true if the element type is a keyword.

Trait Implementations§

Source§

impl Clone for CSharpElementType

Source§

fn clone(&self) -> CSharpElementType

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 CSharpElementType

Source§

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

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

impl<'de> Deserialize<'de> for CSharpElementType

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 ElementType for CSharpElementType

Source§

type Role = UniversalElementRole

The associated role type for this element kind.
Source§

fn role(&self) -> Self::Role

Returns the general syntactic role of this element. Read more
Source§

fn is_role(&self, role: Self::Role) -> bool

Returns true if this element matches the specified language-specific role.
Source§

fn is_universal(&self, role: UniversalElementRole) -> bool

Returns true if this element matches the specified universal role.
Source§

fn is_root(&self) -> bool

Returns true if this element represents the root of the parsed tree.
Source§

fn is_error(&self) -> bool

Returns true if this element represents an error condition.
Source§

impl From<CSharpTokenType> for CSharpElementType

Source§

fn from(token: CSharpTokenType) -> Self

Converts to this type from the input type.
Source§

impl Hash for CSharpElementType

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 CSharpElementType

Source§

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

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 Copy for CSharpElementType

Source§

impl Eq for CSharpElementType

Source§

impl StructuralPartialEq for CSharpElementType

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