[−][src]Enum staticvec::StringError
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
.
Indicates an attempted access of an invalid UTF-8 character index.
Indicates an out-of-bounds indexed access of a StaticString
instance.
Methods
impl StringError
[src]
pub fn is_utf8(&self) -> bool
[src]
pub fn is_utf16(&self) -> bool
[src]
pub fn is_out_of_bounds(&self) -> bool
[src]
pub fn is_not_char_boundary(&self) -> bool
[src]
Trait Implementations
impl Clone for StringError
[src]
fn clone(&self) -> StringError
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for StringError
[src]
impl Display for StringError
[src]
impl Eq for StringError
[src]
impl Error for StringError
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn description(&self) -> &str
1.0.0[src]
fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl<const N: usize> From<CapacityError<N>> for StringError
[src]
fn from(_err: CapacityError<N>) -> Self
[src]
impl From<DecodeUtf16Error> for StringError
[src]
fn from(err: DecodeUtf16Error) -> Self
[src]
impl From<Utf8Error> for StringError
[src]
impl PartialEq<StringError> for StringError
[src]
fn eq(&self, other: &StringError) -> bool
[src]
fn ne(&self, other: &StringError) -> bool
[src]
impl StructuralEq for StringError
[src]
impl StructuralPartialEq for StringError
[src]
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
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,