Skip to main content

ErrorReason

Enum ErrorReason 

Source
#[repr(i32)]
pub enum ErrorReason {
Show 34 variants CODEC_GENERAL_CBOR_ERROR_REASON_UNSPECIFIED = 0, CODEC_GENERAL_CBOR_ERROR_REASON_EMPTY_INPUT = 1, CODEC_GENERAL_CBOR_ERROR_REASON_TRUNCATED = 2, CODEC_GENERAL_CBOR_ERROR_REASON_RESERVED_ADDITIONAL_INFORMATION = 3, CODEC_GENERAL_CBOR_ERROR_REASON_INVALID_INDEFINITE_ARGUMENT = 4, CODEC_GENERAL_CBOR_ERROR_REASON_UNEXPECTED_BREAK = 5, CODEC_GENERAL_CBOR_ERROR_REASON_INVALID_SIMPLE_VALUE = 6, CODEC_GENERAL_CBOR_ERROR_REASON_INVALID_CHUNK = 7, CODEC_GENERAL_CBOR_ERROR_REASON_INDEFINITE_NOT_ALLOWED = 8, CODEC_GENERAL_CBOR_ERROR_REASON_NON_PREFERRED_ARGUMENT = 9, CODEC_GENERAL_CBOR_ERROR_REASON_NON_PREFERRED_FLOAT = 10, CODEC_GENERAL_CBOR_ERROR_REASON_FLOAT_NOT_ALLOWED = 11, CODEC_GENERAL_CBOR_ERROR_REASON_NON_FINITE_FLOAT = 12, CODEC_GENERAL_CBOR_ERROR_REASON_INVALID_UTF8 = 13, CODEC_GENERAL_CBOR_ERROR_REASON_DUPLICATE_MAP_KEY = 14, CODEC_GENERAL_CBOR_ERROR_REASON_MAP_KEY_ORDER = 15, CODEC_GENERAL_CBOR_ERROR_REASON_TRAILING_DATA = 16, CODEC_GENERAL_CBOR_ERROR_REASON_WRONG_TYPE = 17, CODEC_GENERAL_CBOR_ERROR_REASON_WRONG_TAG = 18, CODEC_GENERAL_CBOR_ERROR_REASON_EMPTY_EMBEDDED_ITEM = 19, CODEC_GENERAL_CBOR_ERROR_REASON_NON_CONTIGUOUS_STRING = 20, CODEC_GENERAL_CBOR_ERROR_REASON_INVALID_LIMIT = 21, CODEC_GENERAL_CBOR_ERROR_REASON_UNSUPPORTED_POLICY = 22, CODEC_GENERAL_CBOR_ERROR_REASON_INPUT_LIMIT = 23, CODEC_GENERAL_CBOR_ERROR_REASON_OUTPUT_LIMIT = 24, CODEC_GENERAL_CBOR_ERROR_REASON_DEPTH_LIMIT = 25, CODEC_GENERAL_CBOR_ERROR_REASON_NODE_LIMIT = 26, CODEC_GENERAL_CBOR_ERROR_REASON_ENTRY_LIMIT = 27, CODEC_GENERAL_CBOR_ERROR_REASON_BYTE_STRING_LIMIT = 28, CODEC_GENERAL_CBOR_ERROR_REASON_TEXT_LIMIT = 29, CODEC_GENERAL_CBOR_ERROR_REASON_WORK_LIMIT = 30, CODEC_GENERAL_CBOR_ERROR_REASON_CONTAINER_EXCEEDS_INPUT = 31, CODEC_GENERAL_CBOR_ERROR_REASON_ARITHMETIC_OVERFLOW = 32, CODEC_GENERAL_CBOR_ERROR_REASON_ALLOCATION_FAILURE = 33,
}

Variants§

§

CODEC_GENERAL_CBOR_ERROR_REASON_UNSPECIFIED = 0

§

CODEC_GENERAL_CBOR_ERROR_REASON_EMPTY_INPUT = 1

Error text: empty input

§

CODEC_GENERAL_CBOR_ERROR_REASON_TRUNCATED = 2

Error text: truncated item

§

CODEC_GENERAL_CBOR_ERROR_REASON_RESERVED_ADDITIONAL_INFORMATION = 3

Error text: reserved additional information

§

CODEC_GENERAL_CBOR_ERROR_REASON_INVALID_INDEFINITE_ARGUMENT = 4

Error text: invalid indefinite argument

§

CODEC_GENERAL_CBOR_ERROR_REASON_UNEXPECTED_BREAK = 5

Error text: unexpected break

§

CODEC_GENERAL_CBOR_ERROR_REASON_INVALID_SIMPLE_VALUE = 6

Error text: invalid simple value encoding

§

CODEC_GENERAL_CBOR_ERROR_REASON_INVALID_CHUNK = 7

Error text: invalid string chunk

§

CODEC_GENERAL_CBOR_ERROR_REASON_INDEFINITE_NOT_ALLOWED = 8

Error text: indefinite length is not allowed

§

CODEC_GENERAL_CBOR_ERROR_REASON_NON_PREFERRED_ARGUMENT = 9

Error text: non-preferred argument encoding

§

CODEC_GENERAL_CBOR_ERROR_REASON_NON_PREFERRED_FLOAT = 10

Error text: non-preferred floating-point encoding

§

CODEC_GENERAL_CBOR_ERROR_REASON_FLOAT_NOT_ALLOWED = 11

Error text: floating-point values are not allowed

§

CODEC_GENERAL_CBOR_ERROR_REASON_NON_FINITE_FLOAT = 12

Error text: non-finite floating-point value

§

CODEC_GENERAL_CBOR_ERROR_REASON_INVALID_UTF8 = 13

Error text: invalid UTF-8

§

CODEC_GENERAL_CBOR_ERROR_REASON_DUPLICATE_MAP_KEY = 14

Error text: duplicate map key

§

CODEC_GENERAL_CBOR_ERROR_REASON_MAP_KEY_ORDER = 15

Error text: map key ordering violation

§

CODEC_GENERAL_CBOR_ERROR_REASON_TRAILING_DATA = 16

Error text: trailing data

§

CODEC_GENERAL_CBOR_ERROR_REASON_WRONG_TYPE = 17

Error text: unexpected item type

§

CODEC_GENERAL_CBOR_ERROR_REASON_WRONG_TAG = 18

Error text: unexpected tag

§

CODEC_GENERAL_CBOR_ERROR_REASON_EMPTY_EMBEDDED_ITEM = 19

Error text: empty embedded CBOR

§

CODEC_GENERAL_CBOR_ERROR_REASON_NON_CONTIGUOUS_STRING = 20

Error text: non-contiguous string contents

§

CODEC_GENERAL_CBOR_ERROR_REASON_INVALID_LIMIT = 21

Error text: invalid resource limit

§

CODEC_GENERAL_CBOR_ERROR_REASON_UNSUPPORTED_POLICY = 22

Error text: unsupported profile combination

§

CODEC_GENERAL_CBOR_ERROR_REASON_INPUT_LIMIT = 23

Error text: input limit exceeded

§

CODEC_GENERAL_CBOR_ERROR_REASON_OUTPUT_LIMIT = 24

Error text: output limit exceeded

§

CODEC_GENERAL_CBOR_ERROR_REASON_DEPTH_LIMIT = 25

Error text: nesting limit exceeded

§

CODEC_GENERAL_CBOR_ERROR_REASON_NODE_LIMIT = 26

Error text: node limit exceeded

§

CODEC_GENERAL_CBOR_ERROR_REASON_ENTRY_LIMIT = 27

Error text: container entry limit exceeded

§

CODEC_GENERAL_CBOR_ERROR_REASON_BYTE_STRING_LIMIT = 28

Error text: byte-string content limit exceeded

§

CODEC_GENERAL_CBOR_ERROR_REASON_TEXT_LIMIT = 29

Error text: text content limit exceeded

§

CODEC_GENERAL_CBOR_ERROR_REASON_WORK_LIMIT = 30

Error text: validation work limit exceeded

§

CODEC_GENERAL_CBOR_ERROR_REASON_CONTAINER_EXCEEDS_INPUT = 31

Error text: container declaration exceeds remaining input

§

CODEC_GENERAL_CBOR_ERROR_REASON_ARITHMETIC_OVERFLOW = 32

Error text: length arithmetic overflow

§

CODEC_GENERAL_CBOR_ERROR_REASON_ALLOCATION_FAILURE = 33

Error text: bounded allocation failed

Implementations§

Source§

impl CodecGeneralCborErrorReason

Source

pub const Unspecified: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_UNSPECIFIED

Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_UNSPECIFIED; Debug prints the variant name.

Source

pub const EmptyInput: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_EMPTY_INPUT

Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_EMPTY_INPUT; Debug prints the variant name.

Source

pub const Truncated: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_TRUNCATED

Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_TRUNCATED; Debug prints the variant name.

Source

pub const ReservedAdditionalInformation: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_RESERVED_ADDITIONAL_INFORMATION

Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_RESERVED_ADDITIONAL_INFORMATION; Debug prints the variant name.

Source

pub const InvalidIndefiniteArgument: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_INVALID_INDEFINITE_ARGUMENT

Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_INVALID_INDEFINITE_ARGUMENT; Debug prints the variant name.

Source

pub const UnexpectedBreak: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_UNEXPECTED_BREAK

Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_UNEXPECTED_BREAK; Debug prints the variant name.

Source

pub const InvalidSimpleValue: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_INVALID_SIMPLE_VALUE

Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_INVALID_SIMPLE_VALUE; Debug prints the variant name.

Source

pub const InvalidChunk: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_INVALID_CHUNK

Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_INVALID_CHUNK; Debug prints the variant name.

Source

pub const IndefiniteNotAllowed: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_INDEFINITE_NOT_ALLOWED

Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_INDEFINITE_NOT_ALLOWED; Debug prints the variant name.

Source

pub const NonPreferredArgument: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_NON_PREFERRED_ARGUMENT

Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_NON_PREFERRED_ARGUMENT; Debug prints the variant name.

Source

pub const NonPreferredFloat: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_NON_PREFERRED_FLOAT

Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_NON_PREFERRED_FLOAT; Debug prints the variant name.

Source

pub const FloatNotAllowed: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_FLOAT_NOT_ALLOWED

Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_FLOAT_NOT_ALLOWED; Debug prints the variant name.

Source

pub const NonFiniteFloat: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_NON_FINITE_FLOAT

Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_NON_FINITE_FLOAT; Debug prints the variant name.

Source

pub const InvalidUtf8: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_INVALID_UTF8

Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_INVALID_UTF8; Debug prints the variant name.

Source

pub const DuplicateMapKey: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_DUPLICATE_MAP_KEY

Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_DUPLICATE_MAP_KEY; Debug prints the variant name.

Source

pub const MapKeyOrder: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_MAP_KEY_ORDER

Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_MAP_KEY_ORDER; Debug prints the variant name.

Source

pub const TrailingData: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_TRAILING_DATA

Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_TRAILING_DATA; Debug prints the variant name.

Source

pub const WrongType: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_WRONG_TYPE

Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_WRONG_TYPE; Debug prints the variant name.

Source

pub const WrongTag: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_WRONG_TAG

Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_WRONG_TAG; Debug prints the variant name.

Source

pub const EmptyEmbeddedItem: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_EMPTY_EMBEDDED_ITEM

Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_EMPTY_EMBEDDED_ITEM; Debug prints the variant name.

Source

pub const NonContiguousString: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_NON_CONTIGUOUS_STRING

Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_NON_CONTIGUOUS_STRING; Debug prints the variant name.

Source

pub const InvalidLimit: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_INVALID_LIMIT

Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_INVALID_LIMIT; Debug prints the variant name.

Source

pub const UnsupportedPolicy: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_UNSUPPORTED_POLICY

Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_UNSUPPORTED_POLICY; Debug prints the variant name.

Source

pub const InputLimit: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_INPUT_LIMIT

Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_INPUT_LIMIT; Debug prints the variant name.

Source

pub const OutputLimit: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_OUTPUT_LIMIT

Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_OUTPUT_LIMIT; Debug prints the variant name.

Source

pub const DepthLimit: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_DEPTH_LIMIT

Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_DEPTH_LIMIT; Debug prints the variant name.

Source

pub const NodeLimit: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_NODE_LIMIT

Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_NODE_LIMIT; Debug prints the variant name.

Source

pub const EntryLimit: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_ENTRY_LIMIT

Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_ENTRY_LIMIT; Debug prints the variant name.

Source

pub const ByteStringLimit: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_BYTE_STRING_LIMIT

Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_BYTE_STRING_LIMIT; Debug prints the variant name.

Source

pub const TextLimit: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_TEXT_LIMIT

Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_TEXT_LIMIT; Debug prints the variant name.

Source

pub const WorkLimit: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_WORK_LIMIT

Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_WORK_LIMIT; Debug prints the variant name.

Source

pub const ContainerExceedsInput: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_CONTAINER_EXCEEDS_INPUT

Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_CONTAINER_EXCEEDS_INPUT; Debug prints the variant name.

Source

pub const ArithmeticOverflow: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_ARITHMETIC_OVERFLOW

Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_ARITHMETIC_OVERFLOW; Debug prints the variant name.

Source

pub const AllocationFailure: CodecGeneralCborErrorReason = Self::CODEC_GENERAL_CBOR_ERROR_REASON_ALLOCATION_FAILURE

Idiomatic alias for Self::CODEC_GENERAL_CBOR_ERROR_REASON_ALLOCATION_FAILURE; Debug prints the variant name.

Trait Implementations§

Source§

impl Clone for CodecGeneralCborErrorReason

Source§

fn clone(&self) -> CodecGeneralCborErrorReason

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 CodecGeneralCborErrorReason

Source§

impl Debug for CodecGeneralCborErrorReason

Source§

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

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

impl Default for CodecGeneralCborErrorReason

Source§

fn default() -> CodecGeneralCborErrorReason

Returns the “default value” for a type. Read more
Source§

impl<'de> Deserialize<'de> for CodecGeneralCborErrorReason

Source§

fn deserialize<__D>( d: __D, ) -> Result<CodecGeneralCborErrorReason, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize this value from the given Serde deserializer. Read more
Source§

impl Display for CodecGeneralCborErrorReason

Source§

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

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

impl Enumeration for CodecGeneralCborErrorReason

Source§

fn from_i32(value: i32) -> Option<CodecGeneralCborErrorReason>

Convert from an i32 wire value to the enum. Read more
Source§

fn to_i32(&self) -> i32

Convert the enum to its i32 wire value.
Source§

fn proto_name(&self) -> &'static str

The name of this enum variant as it appears in the .proto file.
Source§

fn from_proto_name(name: &str) -> Option<CodecGeneralCborErrorReason>

Look up a variant by its protobuf name string. Read more
Source§

fn values() -> &'static [CodecGeneralCborErrorReason]

All known variants of this enum, in proto declaration order. Read more
Source§

const IS_NULL_VALUE: bool = false

Whether this enum represents google.protobuf.NullValue for JSON collections. Read more
Source§

impl Eq for CodecGeneralCborErrorReason

Source§

impl Error for CodecGeneralCborErrorReason

1.30.0 · Source§

fn source(&self) -> Option<&(dyn Error + 'static)>

Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§

fn description(&self) -> &str

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl Hash for CodecGeneralCborErrorReason

Source§

fn hash<__H>(&self, state: &mut __H)
where __H: Hasher,

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 CodecGeneralCborErrorReason

Source§

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

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

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

Inequality operator !=. Read more
Source§

impl ProtoElemJson for CodecGeneralCborErrorReason

Source§

fn serialize_proto_json<__S>( v: &CodecGeneralCborErrorReason, s: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value with proto3 JSON semantics.
Source§

fn deserialize_proto_json<'de, __D>( d: __D, ) -> Result<CodecGeneralCborErrorReason, <__D as Deserializer<'de>>::Error>
where __D: Deserializer<'de>,

Deserialize a value with proto3 JSON semantics.
Source§

fn deserialize_proto_json_null<E>() -> Result<Self, E>
where E: Error,

Deserialize a JSON null when it is a valid representation of this protobuf type inside a container. Most protobuf element types reject null; google.protobuf.Value overrides this for its null variant.
Source§

impl Serialize for CodecGeneralCborErrorReason

Source§

fn serialize<__S>( &self, s: __S, ) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>
where __S: Serializer,

Serialize this value into the given Serde serializer. Read more
Source§

impl StructuralPartialEq for CodecGeneralCborErrorReason

Source§

impl Zeroize for CodecGeneralCborErrorReason

Source§

fn zeroize(&mut self)

Zero out this object from memory using Rust intrinsics which ensure the zeroization operation is not “optimized away” by the compiler.

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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

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> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,

Source§

impl<T> Same for T

Source§

type Output = T

Should always be Self
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 = !

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

fn try_from(value: U) -> Result<T, !>

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.