Skip to main content

OutputType

Enum OutputType 

Source
#[repr(u8)]
pub enum OutputType {
Show 256 variants P2PK65 = 0, P2PK33 = 1, P2PKH = 2, P2MS = 3, P2SH = 4, OpReturn = 5, P2WPKH = 6, P2WSH = 7, P2TR = 8, P2A = 9, Dummy10 = 10, Dummy11 = 11, Dummy12 = 12, Dummy13 = 13, Dummy14 = 14, Dummy15 = 15, Dummy16 = 16, Dummy17 = 17, Dummy18 = 18, Dummy19 = 19, Dummy20 = 20, Dummy21 = 21, Dummy22 = 22, Dummy23 = 23, Dummy24 = 24, Dummy25 = 25, Dummy26 = 26, Dummy27 = 27, Dummy28 = 28, Dummy29 = 29, Dummy30 = 30, Dummy31 = 31, Dummy32 = 32, Dummy33 = 33, Dummy34 = 34, Dummy35 = 35, Dummy36 = 36, Dummy37 = 37, Dummy38 = 38, Dummy39 = 39, Dummy40 = 40, Dummy41 = 41, Dummy42 = 42, Dummy43 = 43, Dummy44 = 44, Dummy45 = 45, Dummy46 = 46, Dummy47 = 47, Dummy48 = 48, Dummy49 = 49, Dummy50 = 50, Dummy51 = 51, Dummy52 = 52, Dummy53 = 53, Dummy54 = 54, Dummy55 = 55, Dummy56 = 56, Dummy57 = 57, Dummy58 = 58, Dummy59 = 59, Dummy60 = 60, Dummy61 = 61, Dummy62 = 62, Dummy63 = 63, Dummy64 = 64, Dummy65 = 65, Dummy66 = 66, Dummy67 = 67, Dummy68 = 68, Dummy69 = 69, Dummy70 = 70, Dummy71 = 71, Dummy72 = 72, Dummy73 = 73, Dummy74 = 74, Dummy75 = 75, Dummy76 = 76, Dummy77 = 77, Dummy78 = 78, Dummy79 = 79, Dummy80 = 80, Dummy81 = 81, Dummy82 = 82, Dummy83 = 83, Dummy84 = 84, Dummy85 = 85, Dummy86 = 86, Dummy87 = 87, Dummy88 = 88, Dummy89 = 89, Dummy90 = 90, Dummy91 = 91, Dummy92 = 92, Dummy93 = 93, Dummy94 = 94, Dummy95 = 95, Dummy96 = 96, Dummy97 = 97, Dummy98 = 98, Dummy99 = 99, Dummy100 = 100, Dummy101 = 101, Dummy102 = 102, Dummy103 = 103, Dummy104 = 104, Dummy105 = 105, Dummy106 = 106, Dummy107 = 107, Dummy108 = 108, Dummy109 = 109, Dummy110 = 110, Dummy111 = 111, Dummy112 = 112, Dummy113 = 113, Dummy114 = 114, Dummy115 = 115, Dummy116 = 116, Dummy117 = 117, Dummy118 = 118, Dummy119 = 119, Dummy120 = 120, Dummy121 = 121, Dummy122 = 122, Dummy123 = 123, Dummy124 = 124, Dummy125 = 125, Dummy126 = 126, Dummy127 = 127, Dummy128 = 128, Dummy129 = 129, Dummy130 = 130, Dummy131 = 131, Dummy132 = 132, Dummy133 = 133, Dummy134 = 134, Dummy135 = 135, Dummy136 = 136, Dummy137 = 137, Dummy138 = 138, Dummy139 = 139, Dummy140 = 140, Dummy141 = 141, Dummy142 = 142, Dummy143 = 143, Dummy144 = 144, Dummy145 = 145, Dummy146 = 146, Dummy147 = 147, Dummy148 = 148, Dummy149 = 149, Dummy150 = 150, Dummy151 = 151, Dummy152 = 152, Dummy153 = 153, Dummy154 = 154, Dummy155 = 155, Dummy156 = 156, Dummy157 = 157, Dummy158 = 158, Dummy159 = 159, Dummy160 = 160, Dummy161 = 161, Dummy162 = 162, Dummy163 = 163, Dummy164 = 164, Dummy165 = 165, Dummy166 = 166, Dummy167 = 167, Dummy168 = 168, Dummy169 = 169, Dummy170 = 170, Dummy171 = 171, Dummy172 = 172, Dummy173 = 173, Dummy174 = 174, Dummy175 = 175, Dummy176 = 176, Dummy177 = 177, Dummy178 = 178, Dummy179 = 179, Dummy180 = 180, Dummy181 = 181, Dummy182 = 182, Dummy183 = 183, Dummy184 = 184, Dummy185 = 185, Dummy186 = 186, Dummy187 = 187, Dummy188 = 188, Dummy189 = 189, Dummy190 = 190, Dummy191 = 191, Dummy192 = 192, Dummy193 = 193, Dummy194 = 194, Dummy195 = 195, Dummy196 = 196, Dummy197 = 197, Dummy198 = 198, Dummy199 = 199, Dummy200 = 200, Dummy201 = 201, Dummy202 = 202, Dummy203 = 203, Dummy204 = 204, Dummy205 = 205, Dummy206 = 206, Dummy207 = 207, Dummy208 = 208, Dummy209 = 209, Dummy210 = 210, Dummy211 = 211, Dummy212 = 212, Dummy213 = 213, Dummy214 = 214, Dummy215 = 215, Dummy216 = 216, Dummy217 = 217, Dummy218 = 218, Dummy219 = 219, Dummy220 = 220, Dummy221 = 221, Dummy222 = 222, Dummy223 = 223, Dummy224 = 224, Dummy225 = 225, Dummy226 = 226, Dummy227 = 227, Dummy228 = 228, Dummy229 = 229, Dummy230 = 230, Dummy231 = 231, Dummy232 = 232, Dummy233 = 233, Dummy234 = 234, Dummy235 = 235, Dummy236 = 236, Dummy237 = 237, Dummy238 = 238, Dummy239 = 239, Dummy240 = 240, Dummy241 = 241, Dummy242 = 242, Dummy243 = 243, Dummy244 = 244, Dummy245 = 245, Dummy246 = 246, Dummy247 = 247, Dummy248 = 248, Dummy249 = 249, Dummy250 = 250, Dummy251 = 251, Dummy252 = 252, Dummy253 = 253, Empty = 254, Unknown = 255,
}

Variants§

§

P2PK65 = 0

§

P2PK33 = 1

§

P2PKH = 2

§

P2MS = 3

§

P2SH = 4

§

OpReturn = 5

§

P2WPKH = 6

§

P2WSH = 7

§

P2TR = 8

§

P2A = 9

§

Dummy10 = 10

§

Dummy11 = 11

§

Dummy12 = 12

§

Dummy13 = 13

§

Dummy14 = 14

§

Dummy15 = 15

§

Dummy16 = 16

§

Dummy17 = 17

§

Dummy18 = 18

§

Dummy19 = 19

§

Dummy20 = 20

§

Dummy21 = 21

§

Dummy22 = 22

§

Dummy23 = 23

§

Dummy24 = 24

§

Dummy25 = 25

§

Dummy26 = 26

§

Dummy27 = 27

§

Dummy28 = 28

§

Dummy29 = 29

§

Dummy30 = 30

§

Dummy31 = 31

§

Dummy32 = 32

§

Dummy33 = 33

§

Dummy34 = 34

§

Dummy35 = 35

§

Dummy36 = 36

§

Dummy37 = 37

§

Dummy38 = 38

§

Dummy39 = 39

§

Dummy40 = 40

§

Dummy41 = 41

§

Dummy42 = 42

§

Dummy43 = 43

§

Dummy44 = 44

§

Dummy45 = 45

§

Dummy46 = 46

§

Dummy47 = 47

§

Dummy48 = 48

§

Dummy49 = 49

§

Dummy50 = 50

§

Dummy51 = 51

§

Dummy52 = 52

§

Dummy53 = 53

§

Dummy54 = 54

§

Dummy55 = 55

§

Dummy56 = 56

§

Dummy57 = 57

§

Dummy58 = 58

§

Dummy59 = 59

§

Dummy60 = 60

§

Dummy61 = 61

§

Dummy62 = 62

§

Dummy63 = 63

§

Dummy64 = 64

§

Dummy65 = 65

§

Dummy66 = 66

§

Dummy67 = 67

§

Dummy68 = 68

§

Dummy69 = 69

§

Dummy70 = 70

§

Dummy71 = 71

§

Dummy72 = 72

§

Dummy73 = 73

§

Dummy74 = 74

§

Dummy75 = 75

§

Dummy76 = 76

§

Dummy77 = 77

§

Dummy78 = 78

§

Dummy79 = 79

§

Dummy80 = 80

§

Dummy81 = 81

§

Dummy82 = 82

§

Dummy83 = 83

§

Dummy84 = 84

§

Dummy85 = 85

§

Dummy86 = 86

§

Dummy87 = 87

§

Dummy88 = 88

§

Dummy89 = 89

§

Dummy90 = 90

§

Dummy91 = 91

§

Dummy92 = 92

§

Dummy93 = 93

§

Dummy94 = 94

§

Dummy95 = 95

§

Dummy96 = 96

§

Dummy97 = 97

§

Dummy98 = 98

§

Dummy99 = 99

§

Dummy100 = 100

§

Dummy101 = 101

§

Dummy102 = 102

§

Dummy103 = 103

§

Dummy104 = 104

§

Dummy105 = 105

§

Dummy106 = 106

§

Dummy107 = 107

§

Dummy108 = 108

§

Dummy109 = 109

§

Dummy110 = 110

§

Dummy111 = 111

§

Dummy112 = 112

§

Dummy113 = 113

§

Dummy114 = 114

§

Dummy115 = 115

§

Dummy116 = 116

§

Dummy117 = 117

§

Dummy118 = 118

§

Dummy119 = 119

§

Dummy120 = 120

§

Dummy121 = 121

§

Dummy122 = 122

§

Dummy123 = 123

§

Dummy124 = 124

§

Dummy125 = 125

§

Dummy126 = 126

§

Dummy127 = 127

§

Dummy128 = 128

§

Dummy129 = 129

§

Dummy130 = 130

§

Dummy131 = 131

§

Dummy132 = 132

§

Dummy133 = 133

§

Dummy134 = 134

§

Dummy135 = 135

§

Dummy136 = 136

§

Dummy137 = 137

§

Dummy138 = 138

§

Dummy139 = 139

§

Dummy140 = 140

§

Dummy141 = 141

§

Dummy142 = 142

§

Dummy143 = 143

§

Dummy144 = 144

§

Dummy145 = 145

§

Dummy146 = 146

§

Dummy147 = 147

§

Dummy148 = 148

§

Dummy149 = 149

§

Dummy150 = 150

§

Dummy151 = 151

§

Dummy152 = 152

§

Dummy153 = 153

§

Dummy154 = 154

§

Dummy155 = 155

§

Dummy156 = 156

§

Dummy157 = 157

§

Dummy158 = 158

§

Dummy159 = 159

§

Dummy160 = 160

§

Dummy161 = 161

§

Dummy162 = 162

§

Dummy163 = 163

§

Dummy164 = 164

§

Dummy165 = 165

§

Dummy166 = 166

§

Dummy167 = 167

§

Dummy168 = 168

§

Dummy169 = 169

§

Dummy170 = 170

§

Dummy171 = 171

§

Dummy172 = 172

§

Dummy173 = 173

§

Dummy174 = 174

§

Dummy175 = 175

§

Dummy176 = 176

§

Dummy177 = 177

§

Dummy178 = 178

§

Dummy179 = 179

§

Dummy180 = 180

§

Dummy181 = 181

§

Dummy182 = 182

§

Dummy183 = 183

§

Dummy184 = 184

§

Dummy185 = 185

§

Dummy186 = 186

§

Dummy187 = 187

§

Dummy188 = 188

§

Dummy189 = 189

§

Dummy190 = 190

§

Dummy191 = 191

§

Dummy192 = 192

§

Dummy193 = 193

§

Dummy194 = 194

§

Dummy195 = 195

§

Dummy196 = 196

§

Dummy197 = 197

§

Dummy198 = 198

§

Dummy199 = 199

§

Dummy200 = 200

§

Dummy201 = 201

§

Dummy202 = 202

§

Dummy203 = 203

§

Dummy204 = 204

§

Dummy205 = 205

§

Dummy206 = 206

§

Dummy207 = 207

§

Dummy208 = 208

§

Dummy209 = 209

§

Dummy210 = 210

§

Dummy211 = 211

§

Dummy212 = 212

§

Dummy213 = 213

§

Dummy214 = 214

§

Dummy215 = 215

§

Dummy216 = 216

§

Dummy217 = 217

§

Dummy218 = 218

§

Dummy219 = 219

§

Dummy220 = 220

§

Dummy221 = 221

§

Dummy222 = 222

§

Dummy223 = 223

§

Dummy224 = 224

§

Dummy225 = 225

§

Dummy226 = 226

§

Dummy227 = 227

§

Dummy228 = 228

§

Dummy229 = 229

§

Dummy230 = 230

§

Dummy231 = 231

§

Dummy232 = 232

§

Dummy233 = 233

§

Dummy234 = 234

§

Dummy235 = 235

§

Dummy236 = 236

§

Dummy237 = 237

§

Dummy238 = 238

§

Dummy239 = 239

§

Dummy240 = 240

§

Dummy241 = 241

§

Dummy242 = 242

§

Dummy243 = 243

§

Dummy244 = 244

§

Dummy245 = 245

§

Dummy246 = 246

§

Dummy247 = 247

§

Dummy248 = 248

§

Dummy249 = 249

§

Dummy250 = 250

§

Dummy251 = 251

§

Dummy252 = 252

§

Dummy253 = 253

§

Empty = 254

§

Unknown = 255

Implementations§

Source§

impl OutputType

Source

pub fn is_spendable(&self) -> bool

Source

pub fn is_address(&self) -> bool

Source

pub fn is_not_address(&self) -> bool

Source

pub fn is_unspendable(&self) -> bool

Source

pub fn as_vec() -> Vec<Self>

Trait Implementations§

Source§

impl Clone for OutputType

Source§

fn clone(&self) -> OutputType

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 OutputType

Source§

impl Debug for OutputType

Source§

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

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

impl Display for OutputType

Source§

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

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

impl Eq for OutputType

Source§

impl From<&Address> for OutputType

Source§

fn from(value: &Address) -> Self

Converts to this type from the input type.
Source§

impl From<&ScriptBuf> for OutputType

Source§

fn from(script: &ScriptBuf) -> Self

Converts to this type from the input type.
Source§

impl From<AddressType> for OutputType

Source§

fn from(value: AddressType) -> Self

Converts to this type from the input type.
Source§

impl FromBytes for OutputType

Source§

fn ref_from_bytes( source: &[u8], ) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>
where Self: KnownLayout + Immutable,

Interprets the given source as a &Self. Read more
Source§

fn ref_from_prefix( source: &[u8], ) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>
where Self: KnownLayout + Immutable,

Interprets the prefix of the given source as a &Self without copying. Read more
Source§

fn ref_from_suffix( source: &[u8], ) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, Infallible>>
where Self: Immutable + KnownLayout,

Interprets the suffix of the given bytes as a &Self. Read more
Source§

fn mut_from_bytes( source: &mut [u8], ) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>
where Self: IntoBytes + KnownLayout,

Interprets the given source as a &mut Self. Read more
Source§

fn mut_from_prefix( source: &mut [u8], ) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>
where Self: IntoBytes + KnownLayout,

Interprets the prefix of the given source as a &mut Self without copying. Read more
Source§

fn mut_from_suffix( source: &mut [u8], ) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, Infallible>>
where Self: IntoBytes + KnownLayout,

Interprets the suffix of the given source as a &mut Self without copying. Read more
Source§

fn read_from_bytes(source: &[u8]) -> Result<Self, SizeError<&[u8], Self>>
where Self: Sized,

Reads a copy of Self from the given source. Read more
Source§

fn read_from_prefix( source: &[u8], ) -> Result<(Self, &[u8]), SizeError<&[u8], Self>>
where Self: Sized,

Reads a copy of Self from the prefix of the given source. Read more
Source§

fn read_from_suffix( source: &[u8], ) -> Result<(&[u8], Self), SizeError<&[u8], Self>>
where Self: Sized,

Reads a copy of Self from the suffix of the given source. Read more
Source§

impl FromZeros for OutputType

Source§

fn zero(&mut self)

Overwrites self with zeros. Read more
Source§

fn new_zeroed() -> Self
where Self: Sized,

Creates an instance of Self from zeroed bytes. Read more
Source§

impl Immutable for OutputType

Source§

impl IntoBytes for OutputType

Source§

fn as_bytes(&self) -> &[u8]
where Self: Immutable,

Gets the bytes of this value. Read more
Source§

fn as_mut_bytes(&mut self) -> &mut [u8]
where Self: FromBytes,

Gets the bytes of this value mutably. Read more
Source§

fn write_to(&self, dst: &mut [u8]) -> Result<(), SizeError<&Self, &mut [u8]>>
where Self: Immutable,

Writes a copy of self to dst. Read more
Source§

fn write_to_prefix( &self, dst: &mut [u8], ) -> Result<(), SizeError<&Self, &mut [u8]>>
where Self: Immutable,

Writes a copy of self to the prefix of dst. Read more
Source§

fn write_to_suffix( &self, dst: &mut [u8], ) -> Result<(), SizeError<&Self, &mut [u8]>>
where Self: Immutable,

Writes a copy of self to the suffix of dst. Read more
Source§

impl KnownLayout for OutputType
where Self: Sized,

Source§

type PointerMetadata = ()

The type of metadata stored in a pointer to Self. Read more
Source§

fn size_for_metadata(meta: Self::PointerMetadata) -> Option<usize>

Computes the size of an object of type Self with the given pointer metadata. Read more
Source§

impl Ord for OutputType

Source§

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

Source§

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

Source§

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

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 OutputType

Source§

impl TryFrom<OutputType> for AddressType

Source§

type Error = Error

The type returned in the event of a conversion error.
Source§

fn try_from(value: OutputType) -> Result<Self, Self::Error>

Performs the conversion.
Source§

impl TryFromBytes for OutputType

Source§

fn try_ref_from_bytes( source: &[u8], ) -> Result<&Self, ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>
where Self: KnownLayout + Immutable,

Attempts to interpret the given source as a &Self. Read more
Source§

fn try_ref_from_prefix( source: &[u8], ) -> Result<(&Self, &[u8]), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>
where Self: KnownLayout + Immutable,

Attempts to interpret the prefix of the given source as a &Self. Read more
Source§

fn try_ref_from_suffix( source: &[u8], ) -> Result<(&[u8], &Self), ConvertError<AlignmentError<&[u8], Self>, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>
where Self: KnownLayout + Immutable,

Attempts to interpret the suffix of the given source as a &Self. Read more
Source§

fn try_mut_from_bytes( bytes: &mut [u8], ) -> Result<&mut Self, ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>
where Self: KnownLayout + IntoBytes,

Attempts to interpret the given source as a &mut Self without copying. Read more
Source§

fn try_mut_from_prefix( source: &mut [u8], ) -> Result<(&mut Self, &mut [u8]), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>
where Self: KnownLayout + IntoBytes,

Attempts to interpret the prefix of the given source as a &mut Self. Read more
Source§

fn try_mut_from_suffix( source: &mut [u8], ) -> Result<(&mut [u8], &mut Self), ConvertError<AlignmentError<&mut [u8], Self>, SizeError<&mut [u8], Self>, ValidityError<&mut [u8], Self>>>
where Self: KnownLayout + IntoBytes,

Attempts to interpret the suffix of the given source as a &mut Self. Read more
Source§

fn try_read_from_bytes( source: &[u8], ) -> Result<Self, ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>
where Self: Sized,

Attempts to read the given source as a Self. Read more
Source§

fn try_read_from_prefix( source: &[u8], ) -> Result<(Self, &[u8]), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>
where Self: Sized,

Attempts to read a Self from the prefix of the given source. Read more
Source§

fn try_read_from_suffix( source: &[u8], ) -> Result<(&[u8], Self), ConvertError<Infallible, SizeError<&[u8], Self>, ValidityError<&[u8], Self>>>
where Self: Sized,

Attempts to read a Self from the suffix of the given source. Read more

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

Source§

fn compare(&self, key: &K) -> Ordering

Compare self to key and return their ordering.
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> IntoEither for T

Source§

fn into_either(self, into_left: bool) -> Either<Self, Self>

Converts self into a Left variant of Either<Self, Self> if into_left is true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

Converts self into a Left variant of Either<Self, Self> if into_left(&self) returns true. Converts self into a Right variant of Either<Self, Self> otherwise. Read more
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> StoredRaw for T

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§

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.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V