Enum cranelift_codegen::ir::instructions::Opcode

source ·
#[repr(u8)]
pub enum Opcode {
Show 186 variants Jump = 1, Brif = 2, BrTable = 3, Debugtrap = 4, Trap = 5, Trapz = 6, ResumableTrap = 7, Trapnz = 8, ResumableTrapnz = 9, Return = 10, Call = 11, CallIndirect = 12, ReturnCall = 13, ReturnCallIndirect = 14, FuncAddr = 15, Splat = 16, Swizzle = 17, X86Pshufb = 18, Insertlane = 19, Extractlane = 20, Smin = 21, Umin = 22, Smax = 23, Umax = 24, AvgRound = 25, UaddSat = 26, SaddSat = 27, UsubSat = 28, SsubSat = 29, Load = 30, Store = 31, Uload8 = 32, Sload8 = 33, Istore8 = 34, Uload16 = 35, Sload16 = 36, Istore16 = 37, Uload32 = 38, Sload32 = 39, Istore32 = 40, Uload8x8 = 41, Sload8x8 = 42, Uload16x4 = 43, Sload16x4 = 44, Uload32x2 = 45, Sload32x2 = 46, StackLoad = 47, StackStore = 48, StackAddr = 49, DynamicStackLoad = 50, DynamicStackStore = 51, DynamicStackAddr = 52, GlobalValue = 53, SymbolValue = 54, TlsValue = 55, GetPinnedReg = 56, SetPinnedReg = 57, GetFramePointer = 58, GetStackPointer = 59, GetReturnAddress = 60, TableAddr = 61, Iconst = 62, F32const = 63, F64const = 64, Vconst = 65, Shuffle = 66, Null = 67, Nop = 68, Select = 69, SelectSpectreGuard = 70, Bitselect = 71, X86Blendv = 72, VanyTrue = 73, VallTrue = 74, VhighBits = 75, Icmp = 76, IcmpImm = 77, Iadd = 78, Isub = 79, Ineg = 80, Iabs = 81, Imul = 82, Umulhi = 83, Smulhi = 84, SqmulRoundSat = 85, X86Pmulhrsw = 86, Udiv = 87, Sdiv = 88, Urem = 89, Srem = 90, IaddImm = 91, ImulImm = 92, UdivImm = 93, SdivImm = 94, UremImm = 95, SremImm = 96, IrsubImm = 97, IaddCin = 98, IaddCarry = 99, UaddOverflow = 100, SaddOverflow = 101, UsubOverflow = 102, SsubOverflow = 103, UmulOverflow = 104, SmulOverflow = 105, UaddOverflowTrap = 106, IsubBin = 107, IsubBorrow = 108, Band = 109, Bor = 110, Bxor = 111, Bnot = 112, BandNot = 113, BorNot = 114, BxorNot = 115, BandImm = 116, BorImm = 117, BxorImm = 118, Rotl = 119, Rotr = 120, RotlImm = 121, RotrImm = 122, Ishl = 123, Ushr = 124, Sshr = 125, IshlImm = 126, UshrImm = 127, SshrImm = 128, Bitrev = 129, Clz = 130, Cls = 131, Ctz = 132, Bswap = 133, Popcnt = 134, Fcmp = 135, Fadd = 136, Fsub = 137, Fmul = 138, Fdiv = 139, Sqrt = 140, Fma = 141, Fneg = 142, Fabs = 143, Fcopysign = 144, Fmin = 145, Fmax = 146, Ceil = 147, Floor = 148, Trunc = 149, Nearest = 150, IsNull = 151, IsInvalid = 152, Bitcast = 153, ScalarToVector = 154, Bmask = 155, Ireduce = 156, Snarrow = 157, Unarrow = 158, Uunarrow = 159, SwidenLow = 160, SwidenHigh = 161, UwidenLow = 162, UwidenHigh = 163, IaddPairwise = 164, X86Pmaddubsw = 165, Uextend = 166, Sextend = 167, Fpromote = 168, Fdemote = 169, Fvdemote = 170, FvpromoteLow = 171, FcvtToUint = 172, FcvtToSint = 173, FcvtToUintSat = 174, FcvtToSintSat = 175, X86Cvtt2dq = 176, FcvtFromUint = 177, FcvtFromSint = 178, Isplit = 179, Iconcat = 180, AtomicRmw = 181, AtomicCas = 182, AtomicLoad = 183, AtomicStore = 184, Fence = 185, ExtractVector = 186,
}
Expand description

An instruction opcode.

All instructions from all supported ISAs are present.

Variants§

§

Jump = 1

jump block_call. (Jump)

§

Brif = 2

brif c, block_then, block_else. (Brif) Type inferred from c.

§

BrTable = 3

br_table x, JT. (BranchTable)

§

Debugtrap = 4

debugtrap. (NullAry)

§

Trap = 5

trap code. (Trap)

§

Trapz = 6

trapz c, code. (CondTrap) Type inferred from c.

§

ResumableTrap = 7

resumable_trap code. (Trap)

§

Trapnz = 8

trapnz c, code. (CondTrap) Type inferred from c.

§

ResumableTrapnz = 9

resumable_trapnz c, code. (CondTrap) Type inferred from c.

§

Return = 10

return rvals. (MultiAry)

§

Call = 11

rvals = call FN, args. (Call)

§

CallIndirect = 12

rvals = call_indirect SIG, callee, args. (CallIndirect) Type inferred from callee.

§

ReturnCall = 13

return_call FN, args. (Call)

§

ReturnCallIndirect = 14

return_call_indirect SIG, callee, args. (CallIndirect) Type inferred from callee.

§

FuncAddr = 15

addr = func_addr FN. (FuncAddr)

§

Splat = 16

a = splat x. (Unary)

§

Swizzle = 17

a = swizzle x, y. (Binary)

§

X86Pshufb = 18

a = x86_pshufb x, y. (Binary)

§

Insertlane = 19

a = insertlane x, y, Idx. (TernaryImm8) Type inferred from x.

§

Extractlane = 20

a = extractlane x, Idx. (BinaryImm8) Type inferred from x.

§

Smin = 21

a = smin x, y. (Binary) Type inferred from x.

§

Umin = 22

a = umin x, y. (Binary) Type inferred from x.

§

Smax = 23

a = smax x, y. (Binary) Type inferred from x.

§

Umax = 24

a = umax x, y. (Binary) Type inferred from x.

§

AvgRound = 25

a = avg_round x, y. (Binary) Type inferred from x.

§

UaddSat = 26

a = uadd_sat x, y. (Binary) Type inferred from x.

§

SaddSat = 27

a = sadd_sat x, y. (Binary) Type inferred from x.

§

UsubSat = 28

a = usub_sat x, y. (Binary) Type inferred from x.

§

SsubSat = 29

a = ssub_sat x, y. (Binary) Type inferred from x.

§

Load = 30

a = load MemFlags, p, Offset. (Load)

§

Store = 31

store MemFlags, x, p, Offset. (Store) Type inferred from x.

§

Uload8 = 32

a = uload8 MemFlags, p, Offset. (Load)

§

Sload8 = 33

a = sload8 MemFlags, p, Offset. (Load)

§

Istore8 = 34

istore8 MemFlags, x, p, Offset. (Store) Type inferred from x.

§

Uload16 = 35

a = uload16 MemFlags, p, Offset. (Load)

§

Sload16 = 36

a = sload16 MemFlags, p, Offset. (Load)

§

Istore16 = 37

istore16 MemFlags, x, p, Offset. (Store) Type inferred from x.

§

Uload32 = 38

a = uload32 MemFlags, p, Offset. (Load) Type inferred from p.

§

Sload32 = 39

a = sload32 MemFlags, p, Offset. (Load) Type inferred from p.

§

Istore32 = 40

istore32 MemFlags, x, p, Offset. (Store) Type inferred from x.

§

Uload8x8 = 41

a = uload8x8 MemFlags, p, Offset. (Load) Type inferred from p.

§

Sload8x8 = 42

a = sload8x8 MemFlags, p, Offset. (Load) Type inferred from p.

§

Uload16x4 = 43

a = uload16x4 MemFlags, p, Offset. (Load) Type inferred from p.

§

Sload16x4 = 44

a = sload16x4 MemFlags, p, Offset. (Load) Type inferred from p.

§

Uload32x2 = 45

a = uload32x2 MemFlags, p, Offset. (Load) Type inferred from p.

§

Sload32x2 = 46

a = sload32x2 MemFlags, p, Offset. (Load) Type inferred from p.

§

StackLoad = 47

a = stack_load SS, Offset. (StackLoad)

§

StackStore = 48

stack_store x, SS, Offset. (StackStore) Type inferred from x.

§

StackAddr = 49

addr = stack_addr SS, Offset. (StackLoad)

§

DynamicStackLoad = 50

a = dynamic_stack_load DSS. (DynamicStackLoad)

§

DynamicStackStore = 51

dynamic_stack_store x, DSS. (DynamicStackStore) Type inferred from x.

§

DynamicStackAddr = 52

addr = dynamic_stack_addr DSS. (DynamicStackLoad)

§

GlobalValue = 53

a = global_value GV. (UnaryGlobalValue)

§

SymbolValue = 54

a = symbol_value GV. (UnaryGlobalValue)

§

TlsValue = 55

a = tls_value GV. (UnaryGlobalValue)

§

GetPinnedReg = 56

addr = get_pinned_reg. (NullAry)

§

SetPinnedReg = 57

set_pinned_reg addr. (Unary) Type inferred from addr.

§

GetFramePointer = 58

addr = get_frame_pointer. (NullAry)

§

GetStackPointer = 59

addr = get_stack_pointer. (NullAry)

§

GetReturnAddress = 60

addr = get_return_address. (NullAry)

§

TableAddr = 61

addr = table_addr T, p, Offset. (TableAddr)

§

Iconst = 62

a = iconst N. (UnaryImm)

§

F32const = 63

a = f32const N. (UnaryIeee32)

§

F64const = 64

a = f64const N. (UnaryIeee64)

§

Vconst = 65

a = vconst N. (UnaryConst)

§

Shuffle = 66

a = shuffle a, b, mask. (Shuffle)

§

Null = 67

a = null. (NullAry)

§

Nop = 68

nop. (NullAry)

§

Select = 69

a = select c, x, y. (Ternary) Type inferred from x.

§

SelectSpectreGuard = 70

a = select_spectre_guard c, x, y. (Ternary) Type inferred from x.

§

Bitselect = 71

a = bitselect c, x, y. (Ternary) Type inferred from x.

§

X86Blendv = 72

a = x86_blendv c, x, y. (Ternary) Type inferred from x.

§

VanyTrue = 73

s = vany_true a. (Unary) Type inferred from a.

§

VallTrue = 74

s = vall_true a. (Unary) Type inferred from a.

§

VhighBits = 75

x = vhigh_bits a. (Unary)

§

Icmp = 76

a = icmp Cond, x, y. (IntCompare) Type inferred from x.

§

IcmpImm = 77

a = icmp_imm Cond, x, Y. (IntCompareImm) Type inferred from x.

§

Iadd = 78

a = iadd x, y. (Binary) Type inferred from x.

§

Isub = 79

a = isub x, y. (Binary) Type inferred from x.

§

Ineg = 80

a = ineg x. (Unary) Type inferred from x.

§

Iabs = 81

a = iabs x. (Unary) Type inferred from x.

§

Imul = 82

a = imul x, y. (Binary) Type inferred from x.

§

Umulhi = 83

a = umulhi x, y. (Binary) Type inferred from x.

§

Smulhi = 84

a = smulhi x, y. (Binary) Type inferred from x.

§

SqmulRoundSat = 85

a = sqmul_round_sat x, y. (Binary) Type inferred from x.

§

X86Pmulhrsw = 86

a = x86_pmulhrsw x, y. (Binary) Type inferred from x.

§

Udiv = 87

a = udiv x, y. (Binary) Type inferred from x.

§

Sdiv = 88

a = sdiv x, y. (Binary) Type inferred from x.

§

Urem = 89

a = urem x, y. (Binary) Type inferred from x.

§

Srem = 90

a = srem x, y. (Binary) Type inferred from x.

§

IaddImm = 91

a = iadd_imm x, Y. (BinaryImm64) Type inferred from x.

§

ImulImm = 92

a = imul_imm x, Y. (BinaryImm64) Type inferred from x.

§

UdivImm = 93

a = udiv_imm x, Y. (BinaryImm64) Type inferred from x.

§

SdivImm = 94

a = sdiv_imm x, Y. (BinaryImm64) Type inferred from x.

§

UremImm = 95

a = urem_imm x, Y. (BinaryImm64) Type inferred from x.

§

SremImm = 96

a = srem_imm x, Y. (BinaryImm64) Type inferred from x.

§

IrsubImm = 97

a = irsub_imm x, Y. (BinaryImm64) Type inferred from x.

§

IaddCin = 98

a = iadd_cin x, y, c_in. (Ternary) Type inferred from y.

§

IaddCarry = 99

a, c_out = iadd_carry x, y, c_in. (Ternary) Type inferred from y.

§

UaddOverflow = 100

a, of = uadd_overflow x, y. (Binary) Type inferred from x.

§

SaddOverflow = 101

a, of = sadd_overflow x, y. (Binary) Type inferred from x.

§

UsubOverflow = 102

a, of = usub_overflow x, y. (Binary) Type inferred from x.

§

SsubOverflow = 103

a, of = ssub_overflow x, y. (Binary) Type inferred from x.

§

UmulOverflow = 104

a, of = umul_overflow x, y. (Binary) Type inferred from x.

§

SmulOverflow = 105

a, of = smul_overflow x, y. (Binary) Type inferred from x.

§

UaddOverflowTrap = 106

a = uadd_overflow_trap x, y, code. (IntAddTrap) Type inferred from x.

§

IsubBin = 107

a = isub_bin x, y, b_in. (Ternary) Type inferred from y.

§

IsubBorrow = 108

a, b_out = isub_borrow x, y, b_in. (Ternary) Type inferred from y.

§

Band = 109

a = band x, y. (Binary) Type inferred from x.

§

Bor = 110

a = bor x, y. (Binary) Type inferred from x.

§

Bxor = 111

a = bxor x, y. (Binary) Type inferred from x.

§

Bnot = 112

a = bnot x. (Unary) Type inferred from x.

§

BandNot = 113

a = band_not x, y. (Binary) Type inferred from x.

§

BorNot = 114

a = bor_not x, y. (Binary) Type inferred from x.

§

BxorNot = 115

a = bxor_not x, y. (Binary) Type inferred from x.

§

BandImm = 116

a = band_imm x, Y. (BinaryImm64) Type inferred from x.

§

BorImm = 117

a = bor_imm x, Y. (BinaryImm64) Type inferred from x.

§

BxorImm = 118

a = bxor_imm x, Y. (BinaryImm64) Type inferred from x.

§

Rotl = 119

a = rotl x, y. (Binary) Type inferred from x.

§

Rotr = 120

a = rotr x, y. (Binary) Type inferred from x.

§

RotlImm = 121

a = rotl_imm x, Y. (BinaryImm64) Type inferred from x.

§

RotrImm = 122

a = rotr_imm x, Y. (BinaryImm64) Type inferred from x.

§

Ishl = 123

a = ishl x, y. (Binary) Type inferred from x.

§

Ushr = 124

a = ushr x, y. (Binary) Type inferred from x.

§

Sshr = 125

a = sshr x, y. (Binary) Type inferred from x.

§

IshlImm = 126

a = ishl_imm x, Y. (BinaryImm64) Type inferred from x.

§

UshrImm = 127

a = ushr_imm x, Y. (BinaryImm64) Type inferred from x.

§

SshrImm = 128

a = sshr_imm x, Y. (BinaryImm64) Type inferred from x.

§

Bitrev = 129

a = bitrev x. (Unary) Type inferred from x.

§

Clz = 130

a = clz x. (Unary) Type inferred from x.

§

Cls = 131

a = cls x. (Unary) Type inferred from x.

§

Ctz = 132

a = ctz x. (Unary) Type inferred from x.

§

Bswap = 133

a = bswap x. (Unary) Type inferred from x.

§

Popcnt = 134

a = popcnt x. (Unary) Type inferred from x.

§

Fcmp = 135

a = fcmp Cond, x, y. (FloatCompare) Type inferred from x.

§

Fadd = 136

a = fadd x, y. (Binary) Type inferred from x.

§

Fsub = 137

a = fsub x, y. (Binary) Type inferred from x.

§

Fmul = 138

a = fmul x, y. (Binary) Type inferred from x.

§

Fdiv = 139

a = fdiv x, y. (Binary) Type inferred from x.

§

Sqrt = 140

a = sqrt x. (Unary) Type inferred from x.

§

Fma = 141

a = fma x, y, z. (Ternary) Type inferred from y.

§

Fneg = 142

a = fneg x. (Unary) Type inferred from x.

§

Fabs = 143

a = fabs x. (Unary) Type inferred from x.

§

Fcopysign = 144

a = fcopysign x, y. (Binary) Type inferred from x.

§

Fmin = 145

a = fmin x, y. (Binary) Type inferred from x.

§

Fmax = 146

a = fmax x, y. (Binary) Type inferred from x.

§

Ceil = 147

a = ceil x. (Unary) Type inferred from x.

§

Floor = 148

a = floor x. (Unary) Type inferred from x.

§

Trunc = 149

a = trunc x. (Unary) Type inferred from x.

§

Nearest = 150

a = nearest x. (Unary) Type inferred from x.

§

IsNull = 151

a = is_null x. (Unary) Type inferred from x.

§

IsInvalid = 152

a = is_invalid x. (Unary) Type inferred from x.

§

Bitcast = 153

a = bitcast MemFlags, x. (LoadNoOffset)

§

ScalarToVector = 154

a = scalar_to_vector s. (Unary)

§

Bmask = 155

a = bmask x. (Unary)

§

Ireduce = 156

a = ireduce x. (Unary)

§

Snarrow = 157

a = snarrow x, y. (Binary) Type inferred from x.

§

Unarrow = 158

a = unarrow x, y. (Binary) Type inferred from x.

§

Uunarrow = 159

a = uunarrow x, y. (Binary) Type inferred from x.

§

SwidenLow = 160

a = swiden_low x. (Unary) Type inferred from x.

§

SwidenHigh = 161

a = swiden_high x. (Unary) Type inferred from x.

§

UwidenLow = 162

a = uwiden_low x. (Unary) Type inferred from x.

§

UwidenHigh = 163

a = uwiden_high x. (Unary) Type inferred from x.

§

IaddPairwise = 164

a = iadd_pairwise x, y. (Binary) Type inferred from x.

§

X86Pmaddubsw = 165

a = x86_pmaddubsw x, y. (Binary)

§

Uextend = 166

a = uextend x. (Unary)

§

Sextend = 167

a = sextend x. (Unary)

§

Fpromote = 168

a = fpromote x. (Unary)

§

Fdemote = 169

a = fdemote x. (Unary)

§

Fvdemote = 170

a = fvdemote x. (Unary)

§

FvpromoteLow = 171

x = fvpromote_low a. (Unary)

§

FcvtToUint = 172

a = fcvt_to_uint x. (Unary)

§

FcvtToSint = 173

a = fcvt_to_sint x. (Unary)

§

FcvtToUintSat = 174

a = fcvt_to_uint_sat x. (Unary)

§

FcvtToSintSat = 175

a = fcvt_to_sint_sat x. (Unary)

§

X86Cvtt2dq = 176

a = x86_cvtt2dq x. (Unary)

§

FcvtFromUint = 177

a = fcvt_from_uint x. (Unary)

§

FcvtFromSint = 178

a = fcvt_from_sint x. (Unary)

§

Isplit = 179

lo, hi = isplit x. (Unary) Type inferred from x.

§

Iconcat = 180

a = iconcat lo, hi. (Binary) Type inferred from lo.

§

AtomicRmw = 181

a = atomic_rmw MemFlags, AtomicRmwOp, p, x. (AtomicRmw)

§

AtomicCas = 182

a = atomic_cas MemFlags, p, e, x. (AtomicCas) Type inferred from x.

§

AtomicLoad = 183

a = atomic_load MemFlags, p. (LoadNoOffset)

§

AtomicStore = 184

atomic_store MemFlags, x, p. (StoreNoOffset) Type inferred from x.

§

Fence = 185

fence. (NullAry)

§

ExtractVector = 186

a = extract_vector x, y. (BinaryImm8) Type inferred from x.

Implementations§

source§

impl Opcode

source

pub fn is_terminator(self) -> bool

True for instructions that terminate the block

source

pub fn is_branch(self) -> bool

True for all branch or jump instructions.

source

pub fn is_call(self) -> bool

Is this a call instruction?

source

pub fn is_return(self) -> bool

Is this a return instruction?

source

pub fn can_load(self) -> bool

Can this instruction read from memory?

source

pub fn can_store(self) -> bool

Can this instruction write to memory?

source

pub fn can_trap(self) -> bool

Can this instruction cause a trap?

source

pub fn other_side_effects(self) -> bool

Does this instruction have other side effects besides can_* flags?

source

pub fn side_effects_idempotent(self) -> bool

Despite having side effects, is this instruction okay to GVN?

source

pub fn all() -> &'static [Opcode]

All cranelift opcodes.

source§

impl Opcode

source

pub fn format(self) -> InstructionFormat

Get the instruction format for this opcode.

source

pub fn constraints(self) -> OpcodeConstraints

Get the constraint descriptor for this opcode. Panic if this is called on NotAnOpcode.

source

pub fn is_resumable_trap(&self) -> bool

Returns true if the instruction is a resumable trap.

Trait Implementations§

source§

impl Clone for Opcode

source§

fn clone(&self) -> Opcode

Returns a copy 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 Opcode

source§

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

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

impl Display for Opcode

source§

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

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

impl FromStr for Opcode

source§

fn from_str(s: &str) -> Result<Self, &'static str>

Parse an Opcode name from a string.

§

type Err = &'static str

The associated error which can be returned from parsing.
source§

impl Hash for Opcode

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 Opcode

source§

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

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl Copy for Opcode

source§

impl Eq for Opcode

source§

impl StructuralPartialEq for Opcode

Auto Trait Implementations§

§

impl Freeze for Opcode

§

impl RefUnwindSafe for Opcode

§

impl Send for Opcode

§

impl Sync for Opcode

§

impl Unpin for Opcode

§

impl UnwindSafe for Opcode

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<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<Q, K> Equivalent<K> for Q
where Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,

source§

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

Compare self to key and return true if they are equal.
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,

§

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> ToString for T
where T: Display + ?Sized,

source§

default fn to_string(&self) -> String

Converts the given value to a String. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

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

§

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.