Skip to main content

SyntaxKind

Enum SyntaxKind 

Source
#[repr(u16)]
pub enum SyntaxKind {
Show 273 variants ROOT = 0, LITERAL = 1, STRING_LITERAL = 2, CMD_LITERAL = 3, NONSTANDARD_IDENTIFIER = 4, INTERPOLATION = 5, NAME = 6, BINARY_EXPR = 7, RANGE_EXPR = 8, COMPARISON_EXPR = 9, UNARY_EXPR = 10, PAREN_EXPR = 11, TUPLE_EXPR = 12, BARE_TUPLE_EXPR = 13, PAREN_BLOCK = 14, TOPLEVEL_SEMICOLON = 15, DOC = 16, VECT_EXPR = 17, MATRIX_EXPR = 18, MATRIX_ROW = 19, TYPED_MATRIX_EXPR = 20, BRACESCAT_EXPR = 21, COMPREHENSION = 22, BRACES_COMPREHENSION = 23, TYPED_COMPREHENSION = 24, GENERATOR = 25, COMPREHENSION_IF = 26, CALL_EXPR = 27, INDEX_EXPR = 28, DOT_CALL_EXPR = 29, CURLY_EXPR = 30, BRACES = 31, ARG_LIST = 32, ARG = 33, KEYWORD_ARG = 34, PARAMETERS = 35, TYPE_ANNOTATION = 36, WHERE_EXPR = 37, SPLAT_EXPR = 38, POSTFIX_EXPR = 39, END_MARKER = 40, BEGIN_MARKER = 41, OPERATOR_ATOM = 42, ASSIGNMENT_EXPR = 43, ARROW_EXPR = 44, JUXTAPOSE_EXPR = 45, TERNARY_EXPR = 46, IF_EXPR = 47, ELSEIF_CLAUSE = 48, ELSE_CLAUSE = 49, CONDITION = 50, FUNCTION_DEF = 51, MACRO_DEF = 52, SIGNATURE = 53, BLOCK = 54, BEGIN_EXPR = 55, WHILE_EXPR = 56, FOR_EXPR = 57, FOR_BINDING = 58, OUTER_BINDING = 59, LET_EXPR = 60, LET_BINDINGS = 61, QUOTE_EXPR = 62, QUOTE_SYM = 63, TRY_EXPR = 64, CATCH_CLAUSE = 65, FINALLY_CLAUSE = 66, STRUCT_DEF = 67, ABSTRACT_DEF = 68, PRIMITIVE_DEF = 69, TYPEGROUP_DEF = 70, MODULE_DEF = 71, DO_EXPR = 72, DO_PARAMS = 73, RETURN_EXPR = 74, BREAK_EXPR = 75, CONTINUE_EXPR = 76, CONST_STMT = 77, GLOBAL_STMT = 78, LOCAL_STMT = 79, IMPORT_STMT = 80, USING_STMT = 81, EXPORT_STMT = 82, PUBLIC_STMT = 83, IMPORT_PATH = 84, IMPORT_ALIAS = 85, MACRO_CALL = 86, MACRO_NAME = 87, WHITESPACE = 88, NEWLINE = 89, COMMENT = 90, BLOCK_COMMENT = 91, IDENT = 92, INTEGER = 93, BIN_INT = 94, OCT_INT = 95, HEX_INT = 96, FLOAT = 97, FLOAT32 = 98, ERROR_INVALID_NUMBER = 99, ERROR_HEX_FLOAT_NO_P = 100, ERROR_UNKNOWN_CHAR = 101, CHAR = 102, STRING_DELIM_OPEN = 103, STRING_DELIM_CLOSE = 104, CMD_DELIM_OPEN = 105, CMD_DELIM_CLOSE = 106, STRING_CONTENT = 107, STRING_PREFIX = 108, STRING_SUFFIX = 109, FUNCTION_KW = 110, MACRO_KW = 111, END_KW = 112, IF_KW = 113, ELSEIF_KW = 114, ELSE_KW = 115, BEGIN_KW = 116, TRUE_KW = 117, FALSE_KW = 118, WHILE_KW = 119, FOR_KW = 120, LET_KW = 121, QUOTE_KW = 122, TRY_KW = 123, CATCH_KW = 124, FINALLY_KW = 125, STRUCT_KW = 126, MUTABLE_KW = 127, MODULE_KW = 128, BAREMODULE_KW = 129, DO_KW = 130, RETURN_KW = 131, BREAK_KW = 132, CONTINUE_KW = 133, CONST_KW = 134, GLOBAL_KW = 135, LOCAL_KW = 136, IMPORT_KW = 137, USING_KW = 138, EXPORT_KW = 139, WHERE_KW = 140, EQ = 141, PLUS = 142, MINUS = 143, STAR = 144, SLASH = 145, BACKSLASH = 146, SLASH_SLASH = 147, CARET = 148, PERCENT = 149, PLUS_PERCENT = 150, PLUS_PLUS = 151, MINUS_PERCENT = 152, STAR_PERCENT = 153, STAR_STAR = 154, MINUS_MINUS = 155, EQ_EQ = 156, NOT_EQ = 157, EQ_EQ_EQ = 158, NOT_EQ_EQ = 159, LT = 160, LE = 161, GT = 162, GE = 163, AND_AND = 164, OR_OR = 165, COLON = 166, COLON_COLON = 167, SUBTYPE = 168, SUPERTYPE = 169, ARROW = 170, LONG_ARROW = 171, LEFT_RIGHT_ARROW = 172, LEFT_LONG_ARROW = 173, FAT_ARROW = 174, SHL = 175, SHR = 176, USHR = 177, PLUS_EQ = 178, MINUS_EQ = 179, STAR_EQ = 180, SLASH_EQ = 181, BACKSLASH_EQ = 182, SLASH_SLASH_EQ = 183, CARET_EQ = 184, PERCENT_EQ = 185, PLUS_PERCENT_EQ = 186, MINUS_PERCENT_EQ = 187, STAR_PERCENT_EQ = 188, PIPE_EQ = 189, DOLLAR_EQ = 190, AMP_EQ = 191, SHL_EQ = 192, SHR_EQ = 193, USHR_EQ = 194, DIV_EQ = 195, XOR_EQ = 196, DOT = 197, DOT_DOT = 198, DOT_DOT_DOT = 199, PIPE_GT = 200, PIPE_LT = 201, BANG = 202, AMP = 203, PIPE = 204, TILDE = 205, QUESTION = 206, TRANSPOSE = 207, DOT_PLUS = 208, DOT_MINUS = 209, DOT_STAR = 210, DOT_STAR_STAR = 211, DOT_MINUS_MINUS = 212, DOT_SLASH = 213, DOT_BACKSLASH = 214, DOT_SLASH_SLASH = 215, DOT_CARET = 216, DOT_PERCENT = 217, DOT_EQ = 218, DOT_EQ_EQ = 219, DOT_NOT_EQ = 220, DOT_EQ_EQ_EQ = 221, DOT_NOT_EQ_EQ = 222, DOT_LT = 223, DOT_LE = 224, DOT_GT = 225, DOT_GE = 226, DOT_SHL = 227, DOT_SHR = 228, DOT_USHR = 229, DOT_SUBTYPE = 230, DOT_SUPERTYPE = 231, DOT_FAT_ARROW = 232, DOT_LONG_ARROW = 233, DOT_LEFT_LONG_ARROW = 234, DOT_LEFT_RIGHT_ARROW = 235, DOT_PIPE_GT = 236, DOT_TILDE = 237, DOT_AND_AND = 238, DOT_OR_OR = 239, DOT_AMP = 240, DOT_PIPE = 241, DOT_BANG = 242, DOT_PLUS_EQ = 243, DOT_AMP_EQ = 244, DOT_PIPE_EQ = 245, DOT_MINUS_EQ = 246, DOT_STAR_EQ = 247, DOT_SLASH_EQ = 248, DOT_BACKSLASH_EQ = 249, DOT_SLASH_SLASH_EQ = 250, DOT_CARET_EQ = 251, DOT_PERCENT_EQ = 252, DOT_SHL_EQ = 253, DOT_SHR_EQ = 254, DOT_USHR_EQ = 255, DOT_DIV_EQ = 256, DOT_XOR_EQ = 257, COLON_EQ = 258, UNICODE_OP = 259, UNICODE_ASSIGN_OP = 260, UNICODE_RADICAL = 261, LPAREN = 262, RPAREN = 263, LBRACKET = 264, RBRACKET = 265, LBRACE = 266, RBRACE = 267, COMMA = 268, SEMICOLON = 269, AT = 270, DOLLAR = 271, ERROR = 272,
}

Variants§

§

ROOT = 0

§

LITERAL = 1

§

STRING_LITERAL = 2

§

CMD_LITERAL = 3

§

NONSTANDARD_IDENTIFIER = 4

§

INTERPOLATION = 5

§

NAME = 6

§

BINARY_EXPR = 7

§

RANGE_EXPR = 8

§

COMPARISON_EXPR = 9

§

UNARY_EXPR = 10

§

PAREN_EXPR = 11

§

TUPLE_EXPR = 12

§

BARE_TUPLE_EXPR = 13

§

PAREN_BLOCK = 14

§

TOPLEVEL_SEMICOLON = 15

§

DOC = 16

§

VECT_EXPR = 17

§

MATRIX_EXPR = 18

§

MATRIX_ROW = 19

§

TYPED_MATRIX_EXPR = 20

§

BRACESCAT_EXPR = 21

§

COMPREHENSION = 22

§

BRACES_COMPREHENSION = 23

§

TYPED_COMPREHENSION = 24

§

GENERATOR = 25

§

COMPREHENSION_IF = 26

§

CALL_EXPR = 27

§

INDEX_EXPR = 28

§

DOT_CALL_EXPR = 29

§

CURLY_EXPR = 30

§

BRACES = 31

§

ARG_LIST = 32

§

ARG = 33

§

KEYWORD_ARG = 34

§

PARAMETERS = 35

§

TYPE_ANNOTATION = 36

§

WHERE_EXPR = 37

§

SPLAT_EXPR = 38

§

POSTFIX_EXPR = 39

§

END_MARKER = 40

§

BEGIN_MARKER = 41

§

OPERATOR_ATOM = 42

§

ASSIGNMENT_EXPR = 43

§

ARROW_EXPR = 44

§

JUXTAPOSE_EXPR = 45

§

TERNARY_EXPR = 46

§

IF_EXPR = 47

§

ELSEIF_CLAUSE = 48

§

ELSE_CLAUSE = 49

§

CONDITION = 50

§

FUNCTION_DEF = 51

§

MACRO_DEF = 52

§

SIGNATURE = 53

§

BLOCK = 54

§

BEGIN_EXPR = 55

§

WHILE_EXPR = 56

§

FOR_EXPR = 57

§

FOR_BINDING = 58

§

OUTER_BINDING = 59

The outer i pattern of an iteration spec: the contextual outer keyword plus the loop variable it rebinds from the enclosing scope.

§

LET_EXPR = 60

§

LET_BINDINGS = 61

§

QUOTE_EXPR = 62

§

QUOTE_SYM = 63

§

TRY_EXPR = 64

§

CATCH_CLAUSE = 65

§

FINALLY_CLAUSE = 66

§

STRUCT_DEF = 67

§

ABSTRACT_DEF = 68

§

PRIMITIVE_DEF = 69

§

TYPEGROUP_DEF = 70

§

MODULE_DEF = 71

§

DO_EXPR = 72

§

DO_PARAMS = 73

§

RETURN_EXPR = 74

§

BREAK_EXPR = 75

§

CONTINUE_EXPR = 76

§

CONST_STMT = 77

§

GLOBAL_STMT = 78

§

LOCAL_STMT = 79

§

IMPORT_STMT = 80

§

USING_STMT = 81

§

EXPORT_STMT = 82

§

PUBLIC_STMT = 83

§

IMPORT_PATH = 84

§

IMPORT_ALIAS = 85

§

MACRO_CALL = 86

§

MACRO_NAME = 87

§

WHITESPACE = 88

§

NEWLINE = 89

§

COMMENT = 90

§

BLOCK_COMMENT = 91

§

IDENT = 92

§

INTEGER = 93

§

BIN_INT = 94

§

OCT_INT = 95

§

HEX_INT = 96

§

FLOAT = 97

§

FLOAT32 = 98

§

ERROR_INVALID_NUMBER = 99

A malformed numeric literal Julia keeps as a single error token (a hex float with an empty p/P exponent, or a hex constant with no mantissa digits). Projects to (ErrorInvalidNumericConstant).

§

ERROR_HEX_FLOAT_NO_P = 100

A hex float with a . fraction but no p/P binary exponent. Projects to (ErrorHexFloatMustContainP).

§

ERROR_UNKNOWN_CHAR = 101

A stray character Julia does not recognize (a subscript that cannot start an identifier, a lone unknown glyph). Projects to (ErrorUnknownCharacter).

§

CHAR = 102

§

STRING_DELIM_OPEN = 103

§

STRING_DELIM_CLOSE = 104

§

CMD_DELIM_OPEN = 105

§

CMD_DELIM_CLOSE = 106

§

STRING_CONTENT = 107

§

STRING_PREFIX = 108

§

STRING_SUFFIX = 109

§

FUNCTION_KW = 110

§

MACRO_KW = 111

§

END_KW = 112

§

IF_KW = 113

§

ELSEIF_KW = 114

§

ELSE_KW = 115

§

BEGIN_KW = 116

§

TRUE_KW = 117

§

FALSE_KW = 118

§

WHILE_KW = 119

§

FOR_KW = 120

§

LET_KW = 121

§

QUOTE_KW = 122

§

TRY_KW = 123

§

CATCH_KW = 124

§

FINALLY_KW = 125

§

STRUCT_KW = 126

§

MUTABLE_KW = 127

§

MODULE_KW = 128

§

BAREMODULE_KW = 129

§

DO_KW = 130

§

RETURN_KW = 131

§

BREAK_KW = 132

§

CONTINUE_KW = 133

§

CONST_KW = 134

§

GLOBAL_KW = 135

§

LOCAL_KW = 136

§

IMPORT_KW = 137

§

USING_KW = 138

§

EXPORT_KW = 139

§

WHERE_KW = 140

§

EQ = 141

§

PLUS = 142

§

MINUS = 143

§

STAR = 144

§

SLASH = 145

§

BACKSLASH = 146

§

SLASH_SLASH = 147

§

CARET = 148

§

PERCENT = 149

§

PLUS_PERCENT = 150

The wrapping arithmetic operators +%, -%, *% (Julia 1.14). Each keeps its own name in an ordinary infix call ((call-i a +% b)).

§

PLUS_PLUS = 151

The +-tier operator name ++.

§

MINUS_PERCENT = 152

§

STAR_PERCENT = 153

§

STAR_STAR = 154

§

MINUS_MINUS = 155

§

EQ_EQ = 156

§

NOT_EQ = 157

§

EQ_EQ_EQ = 158

§

NOT_EQ_EQ = 159

§

LT = 160

§

LE = 161

§

GT = 162

§

GE = 163

§

AND_AND = 164

§

OR_OR = 165

§

COLON = 166

§

COLON_COLON = 167

§

SUBTYPE = 168

§

SUPERTYPE = 169

§

ARROW = 170

§

LONG_ARROW = 171

§

LEFT_RIGHT_ARROW = 172

§

LEFT_LONG_ARROW = 173

§

FAT_ARROW = 174

§

SHL = 175

§

SHR = 176

§

USHR = 177

§

PLUS_EQ = 178

§

MINUS_EQ = 179

§

STAR_EQ = 180

§

SLASH_EQ = 181

§

BACKSLASH_EQ = 182

§

SLASH_SLASH_EQ = 183

§

CARET_EQ = 184

§

PERCENT_EQ = 185

§

PLUS_PERCENT_EQ = 186

Augmented assignment for the wrapping arithmetic operators: +%=, -%=, *%=.

§

MINUS_PERCENT_EQ = 187

§

STAR_PERCENT_EQ = 188

§

PIPE_EQ = 189

§

DOLLAR_EQ = 190

§

AMP_EQ = 191

§

SHL_EQ = 192

§

SHR_EQ = 193

§

USHR_EQ = 194

§

DIV_EQ = 195

§

XOR_EQ = 196

§

DOT = 197

§

DOT_DOT = 198

§

DOT_DOT_DOT = 199

§

PIPE_GT = 200

§

PIPE_LT = 201

§

BANG = 202

§

AMP = 203

§

PIPE = 204

§

TILDE = 205

§

QUESTION = 206

§

TRANSPOSE = 207

§

DOT_PLUS = 208

§

DOT_MINUS = 209

§

DOT_STAR = 210

§

DOT_STAR_STAR = 211

§

DOT_MINUS_MINUS = 212

§

DOT_SLASH = 213

§

DOT_BACKSLASH = 214

§

DOT_SLASH_SLASH = 215

§

DOT_CARET = 216

§

DOT_PERCENT = 217

§

DOT_EQ = 218

§

DOT_EQ_EQ = 219

§

DOT_NOT_EQ = 220

§

DOT_EQ_EQ_EQ = 221

§

DOT_NOT_EQ_EQ = 222

§

DOT_LT = 223

§

DOT_LE = 224

§

DOT_GT = 225

§

DOT_GE = 226

§

DOT_SHL = 227

§

DOT_SHR = 228

§

DOT_USHR = 229

§

DOT_SUBTYPE = 230

§

DOT_SUPERTYPE = 231

§

DOT_FAT_ARROW = 232

§

DOT_LONG_ARROW = 233

§

DOT_LEFT_LONG_ARROW = 234

§

DOT_LEFT_RIGHT_ARROW = 235

§

DOT_PIPE_GT = 236

§

DOT_TILDE = 237

§

DOT_AND_AND = 238

§

DOT_OR_OR = 239

§

DOT_AMP = 240

§

DOT_PIPE = 241

§

DOT_BANG = 242

Broadcast unary-not .!.

§

DOT_PLUS_EQ = 243

§

DOT_AMP_EQ = 244

§

DOT_PIPE_EQ = 245

§

DOT_MINUS_EQ = 246

§

DOT_STAR_EQ = 247

§

DOT_SLASH_EQ = 248

§

DOT_BACKSLASH_EQ = 249

§

DOT_SLASH_SLASH_EQ = 250

§

DOT_CARET_EQ = 251

§

DOT_PERCENT_EQ = 252

§

DOT_SHL_EQ = 253

§

DOT_SHR_EQ = 254

§

DOT_USHR_EQ = 255

§

DOT_DIV_EQ = 256

§

DOT_XOR_EQ = 257

§

COLON_EQ = 258

The assignment-tier operator :=. Parses like the Unicode ≔ (right-associative, loose as =) and projects with its own head.

§

UNICODE_OP = 259

§

UNICODE_ASSIGN_OP = 260

§

UNICODE_RADICAL = 261

§

LPAREN = 262

§

RPAREN = 263

§

LBRACKET = 264

§

RBRACKET = 265

§

LBRACE = 266

§

RBRACE = 267

§

COMMA = 268

§

SEMICOLON = 269

§

AT = 270

§

DOLLAR = 271

§

ERROR = 272

The error-recovery node kind: unknown tokens and recovered runs. Projected (error), or (error-t) for the byte-bearing recovery runs that the projector identifies from the diagnostics side-channel. Recovery that is merely absent (missing end, disallowed whitespace) lives only in the diagnostics, not the tree (the rust-analyzer model). Keep this the last variant: JuliaLanguage::kind_from_raw uses it as the upper bound of the valid discriminant range.

Implementations§

Source§

impl SyntaxKind

Source

pub const COUNT: usize

The number of distinct kinds. The discriminants are contiguous from ROOT (0) through ERROR, so this is the size of a flat table indexed by kind as usize (used by the linter’s node-dispatch table).

Source

pub fn is_operator(self) -> bool

Whether this token kind is an operator symbol (including dotted, assignment, and unicode forms). One list shared by the sexpr projector and the semantic builder (operator names are importable and exportable: import A: +, export ==).

Trait Implementations§

Source§

impl Clone for SyntaxKind

Source§

fn clone(&self) -> SyntaxKind

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Copy for SyntaxKind

Source§

impl Debug for SyntaxKind

Source§

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

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

impl<'de> Deserialize<'de> for SyntaxKind

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 Eq for SyntaxKind

Source§

impl From<SyntaxKind> for SyntaxKind

Source§

fn from(kind: SyntaxKind) -> Self

Converts to this type from the input type.
Source§

impl Hash for SyntaxKind

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 SyntaxKind

Source§

fn cmp(&self, other: &SyntaxKind) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 (const: unstable) · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 (const: unstable) · 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 SyntaxKind

Source§

fn eq(&self, other: &SyntaxKind) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl PartialOrd for SyntaxKind

Source§

fn partial_cmp(&self, other: &SyntaxKind) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 (const: unstable) · 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 (const: unstable) · 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 (const: unstable) · 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 (const: unstable) · 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 Serialize for SyntaxKind

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 StructuralPartialEq for SyntaxKind

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> DeserializeOwned for T
where T: for<'de> Deserialize<'de>,

Source§

impl<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

Source§

fn equivalent(&self, key: &K) -> bool

Checks if this value is equivalent to the given key. 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.