Enum ConversionErrorKind

#[non_exhaustive]
pub 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.

Trait Implementations

impl Debug for ConversionErrorKind

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

impl Eq for ConversionErrorKind

fn assert_fields_are_eq(&self)

impl PartialEq for ConversionErrorKind

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

impl StructuralPartialEq for ConversionErrorKind

Auto Trait Implementations

impl Freeze for ConversionErrorKind

impl RefUnwindSafe for ConversionErrorKind

impl Send for ConversionErrorKind

impl Sync for ConversionErrorKind

impl Unpin for ConversionErrorKind

impl UnsafeUnpin for ConversionErrorKind

impl UnwindSafe for ConversionErrorKind

Blanket Implementations

impl<T> Any for ConversionErrorKind where T: 'static + ?Sized,

fn type_id(&self) -> TypeId

impl<T> Borrow<T> for ConversionErrorKind where T: ?Sized,

fn borrow(&self) -> &T

impl<T> BorrowMut<T> for ConversionErrorKind where T: ?Sized,

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

impl<T> From<T> for ConversionErrorKind

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> SizeHint for ConversionErrorKind where T: ?Sized,

fn lower_bound(&self) -> usize
fn upper_bound(&self) -> Option<usize>

impl<T> SizedTypeProperties for ConversionErrorKind

impl<T, U> Into<U> for ConversionErrorKind where U: From<T>,

fn into(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<U> for ConversionErrorKind where U: Into<T>,

type Error = never;
fn try_from(value: U) -> Result<T, never>

impl<T, U> TryInto<U> for ConversionErrorKind where U: TryFrom<T>,

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