kvarn_async::prelude::compact_str

Enum ToCompactStringError

#[non_exhaustive]
pub enum ToCompactStringError { Reserve(ReserveError), Fmt(Error), }
Expand description

A possible error value if ToCompactString::try_to_compact_string() failed.

Variants (Non-exhaustive)§

This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
§

Reserve(ReserveError)

Cannot allocate memory to hold CompactString

§

Fmt(Error)

Display::fmt() returned an error

Trait Implementations§