Enum ConversionErrorKind

enum ConversionErrorKind

Errors returned when trying to retrieve a literal unescaped value.

Variants

FailedToUnescape(EscapeError)

The literal failed to be escaped, take a look at EscapeError for more information.

InvalidLiteralKind

Trying to convert a literal with the wrong type.

Implementations

impl Debug for ConversionErrorKind

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

impl Eq for ConversionErrorKind

impl Freeze for ConversionErrorKind

impl PartialEq for ConversionErrorKind

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

impl RefUnwindSafe for ConversionErrorKind

impl Send for ConversionErrorKind

impl StructuralPartialEq for ConversionErrorKind

impl Sync for ConversionErrorKind

impl Unpin for ConversionErrorKind

impl UnwindSafe for ConversionErrorKind

impl<T> Any for ConversionErrorKind

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for ConversionErrorKind

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for ConversionErrorKind

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> From for ConversionErrorKind

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into for ConversionErrorKind

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for ConversionErrorKind

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for ConversionErrorKind

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>