Enum const_format::fmt::Error
source · [−]#[non_exhaustive]
pub enum Error {
NotEnoughSpace,
NotAscii,
NotOnCharBoundary,
}
Available on crate feature
fmt
only.Expand description
An error while trying to write into a StrWriter.
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.
NotEnoughSpace
Attempted to write something into the buffer when there isn’t enough space to write it.
NotAscii
For compatibility with NotAsciiError
NotOnCharBoundary
Attempted to index a string arguent by an range where one of the bounds was not on a char boundary.
Implementations
Trait Implementations
impl Copy for Error
impl Eq for Error
impl StructuralEq for Error
impl StructuralPartialEq for Error
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more