Struct SerializeError

struct SerializeError { ... }

An error that occurs when serializing an object from this crate.

Serialization, as used in this crate, universally refers to the process of transforming a structure (like a DFA) into a custom binary format represented by &[u8]. To this end, serialization is generally infallible. However, it can fail when caller provided buffer sizes are too small. When that occurs, a serialization error is reported.

A SerializeError provides no introspection capabilities. Its only supported operation is conversion to a human readable error message.

This error type implements the std::error::Error trait only when the std feature is enabled. Otherwise, this type is defined in all configurations.

Implementations

impl Debug for SerializeError

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

impl Display for SerializeError

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

impl Error for SerializeError

impl Freeze for SerializeError

impl RefUnwindSafe for SerializeError

impl Send for SerializeError

impl Sync for SerializeError

impl Unpin for SerializeError

impl UnsafeUnpin for SerializeError

impl UnwindSafe for SerializeError

impl<T> Any for SerializeError

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for SerializeError

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

impl<T> BorrowMut for SerializeError

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

impl<T> From for SerializeError

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToString for SerializeError

fn to_string(self: &Self) -> String

impl<T, U> Into for SerializeError

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 SerializeError

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

impl<T, U> TryInto for SerializeError

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