Enum staticvec::StringError
source · [−]pub enum StringError {
Utf8(Utf8Error),
Utf16(DecodeUtf16Error),
NotCharBoundary,
OutOfBounds,
}Expand description
This enum represents several different possible “error states” that may be encountered
while using a StaticString.
Variants
Utf8(Utf8Error)
Indicates a failed conversion from a u8 slice to a
StaticString.
Utf16(DecodeUtf16Error)
Indicates a failed conversion from a u16 slice to a
StaticString.
NotCharBoundary
Indicates an attempted access of an invalid UTF-8 character index.
OutOfBounds
Indicates an out-of-bounds indexed access of a StaticString
instance.
Implementations
Trait Implementations
Performs the conversion.
Performs the conversion.
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for StringError
impl Send for StringError
impl Sync for StringError
impl Unpin for StringError
impl UnwindSafe for StringError
Blanket Implementations
Mutably borrows from an owned value. Read more