cranelift_codegen::ir::instructions

Enum Opcode

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

§

Trapnz = 7

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

§

Return = 8

return rvals. (MultiAry)

§

Call = 9

rvals = call FN, args. (Call)

§

CallIndirect = 10

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

§

ReturnCall = 11

return_call FN, args. (Call)

§

ReturnCallIndirect = 12

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

§

FuncAddr = 13

addr = func_addr FN. (FuncAddr)

§

Splat = 14

a = splat x. (Unary)

§

Swizzle = 15

a = swizzle x, y. (Binary)

§

X86Pshufb = 16

a = x86_pshufb x, y. (Binary)

§

Insertlane = 17

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

§

Extractlane = 18

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

§

Smin = 19

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

§

Umin = 20

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

§

Smax = 21

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

§

Umax = 22

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

§

AvgRound = 23

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

§

UaddSat = 24

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

§

SaddSat = 25

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

§

UsubSat = 26

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

§

SsubSat = 27

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

§

Load = 28

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

§

Store = 29

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

§

Uload8 = 30

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

§

Sload8 = 31

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

§

Istore8 = 32

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

§

Uload16 = 33

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

§

Sload16 = 34

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

§

Istore16 = 35

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

§

Uload32 = 36

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

§

Sload32 = 37

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

§

Istore32 = 38

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

§

Uload8x8 = 39

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

§

Sload8x8 = 40

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

§

Uload16x4 = 41

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

§

Sload16x4 = 42

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

§

Uload32x2 = 43

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

§

Sload32x2 = 44

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

§

StackLoad = 45

a = stack_load SS, Offset. (StackLoad)

§

StackStore = 46

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

§

StackAddr = 47

addr = stack_addr SS, Offset. (StackLoad)

§

DynamicStackLoad = 48

a = dynamic_stack_load DSS. (DynamicStackLoad)

§

DynamicStackStore = 49

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

§

DynamicStackAddr = 50

addr = dynamic_stack_addr DSS. (DynamicStackLoad)

§

GlobalValue = 51

a = global_value GV. (UnaryGlobalValue)

§

SymbolValue = 52

a = symbol_value GV. (UnaryGlobalValue)

§

TlsValue = 53

a = tls_value GV. (UnaryGlobalValue)

§

GetPinnedReg = 54

addr = get_pinned_reg. (NullAry)

§

SetPinnedReg = 55

set_pinned_reg addr. (Unary) Type inferred from addr.

§

GetFramePointer = 56

addr = get_frame_pointer. (NullAry)

§

GetStackPointer = 57

addr = get_stack_pointer. (NullAry)

§

GetReturnAddress = 58

addr = get_return_address. (NullAry)

§

Iconst = 59

a = iconst N. (UnaryImm)

§

F32const = 60

a = f32const N. (UnaryIeee32)

§

F64const = 61

a = f64const N. (UnaryIeee64)

§

Vconst = 62

a = vconst N. (UnaryConst)

§

Shuffle = 63

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

§

Null = 64

a = null. (NullAry)

§

Nop = 65

nop. (NullAry)

§

Select = 66

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

§

SelectSpectreGuard = 67

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

§

Bitselect = 68

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

§

X86Blendv = 69

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

§

VanyTrue = 70

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

§

VallTrue = 71

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

§

VhighBits = 72

x = vhigh_bits a. (Unary)

§

Icmp = 73

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

§

IcmpImm = 74

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

§

Iadd = 75

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

§

Isub = 76

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

§

Ineg = 77

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

§

Iabs = 78

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

§

Imul = 79

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

§

Umulhi = 80

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

§

Smulhi = 81

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

§

SqmulRoundSat = 82

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

§

X86Pmulhrsw = 83

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

§

Udiv = 84

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

§

Sdiv = 85

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

§

Urem = 86

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

§

Srem = 87

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

§

IaddImm = 88

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

§

ImulImm = 89

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

§

UdivImm = 90

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

§

SdivImm = 91

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

§

UremImm = 92

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

§

SremImm = 93

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

§

IrsubImm = 94

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

§

IaddCin = 95

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

§

IaddCarry = 96

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

§

UaddOverflow = 97

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

§

SaddOverflow = 98

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

§

UsubOverflow = 99

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

§

SsubOverflow = 100

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

§

UmulOverflow = 101

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

§

SmulOverflow = 102

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

§

UaddOverflowTrap = 103

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

§

IsubBin = 104

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

§

IsubBorrow = 105

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

§

Band = 106

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

§

Bor = 107

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

§

Bxor = 108

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

§

Bnot = 109

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

§

BandNot = 110

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

§

BorNot = 111

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

§

BxorNot = 112

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

§

BandImm = 113

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

§

BorImm = 114

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

§

BxorImm = 115

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

§

Rotl = 116

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

§

Rotr = 117

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

§

RotlImm = 118

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

§

RotrImm = 119

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

§

Ishl = 120

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

§

Ushr = 121

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

§

Sshr = 122

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

§

IshlImm = 123

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

§

UshrImm = 124

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

§

SshrImm = 125

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

§

Bitrev = 126

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

§

Clz = 127

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

§

Cls = 128

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

§

Ctz = 129

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

§

Bswap = 130

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

§

Popcnt = 131

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

§

Fcmp = 132

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

§

Fadd = 133

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

§

Fsub = 134

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

§

Fmul = 135

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

§

Fdiv = 136

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

§

Sqrt = 137

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

§

Fma = 138

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

§

Fneg = 139

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

§

Fabs = 140

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

§

Fcopysign = 141

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

§

Fmin = 142

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

§

Fmax = 143

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

§

Ceil = 144

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

§

Floor = 145

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

§

Trunc = 146

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

§

Nearest = 147

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

§

IsNull = 148

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

§

IsInvalid = 149

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

§

Bitcast = 150

a = bitcast MemFlags, x. (LoadNoOffset)

§

ScalarToVector = 151

a = scalar_to_vector s. (Unary)

§

Bmask = 152

a = bmask x. (Unary)

§

Ireduce = 153

a = ireduce x. (Unary)

§

Snarrow = 154

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

§

Unarrow = 155

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

§

Uunarrow = 156

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

§

SwidenLow = 157

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

§

SwidenHigh = 158

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

§

UwidenLow = 159

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

§

UwidenHigh = 160

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

§

IaddPairwise = 161

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

§

X86Pmaddubsw = 162

a = x86_pmaddubsw x, y. (Binary)

§

Uextend = 163

a = uextend x. (Unary)

§

Sextend = 164

a = sextend x. (Unary)

§

Fpromote = 165

a = fpromote x. (Unary)

§

Fdemote = 166

a = fdemote x. (Unary)

§

Fvdemote = 167

a = fvdemote x. (Unary)

§

FvpromoteLow = 168

x = fvpromote_low a. (Unary)

§

FcvtToUint = 169

a = fcvt_to_uint x. (Unary)

§

FcvtToSint = 170

a = fcvt_to_sint x. (Unary)

§

FcvtToUintSat = 171

a = fcvt_to_uint_sat x. (Unary)

§

FcvtToSintSat = 172

a = fcvt_to_sint_sat x. (Unary)

§

X86Cvtt2dq = 173

a = x86_cvtt2dq x. (Unary)

§

FcvtFromUint = 174

a = fcvt_from_uint x. (Unary)

§

FcvtFromSint = 175

a = fcvt_from_sint x. (Unary)

§

Isplit = 176

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

§

Iconcat = 177

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

§

AtomicRmw = 178

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

§

AtomicCas = 179

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

§

AtomicLoad = 180

a = atomic_load MemFlags, p. (LoadNoOffset)

§

AtomicStore = 181

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

§

Fence = 182

fence. (NullAry)

§

ExtractVector = 183

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.

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.

source§

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

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 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<T> CloneToUninit for T
where T: Clone,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. 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<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> 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>,

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.