pub enum BadSmallStringError {
TooLong(usize),
BadUtf8(Utf8Error),
}Expand description
Error building a SmallString.
Variants§
Trait Implementations§
Source§impl Clone for BadSmallStringError
impl Clone for BadSmallStringError
Source§fn clone(&self) -> BadSmallStringError
fn clone(&self) -> BadSmallStringError
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BadSmallStringError
impl Debug for BadSmallStringError
Source§impl Display for BadSmallStringError
impl Display for BadSmallStringError
Source§impl Error for BadSmallStringError
impl Error for BadSmallStringError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Utf8Error> for BadSmallStringError
impl From<Utf8Error> for BadSmallStringError
impl Copy for BadSmallStringError
Auto Trait Implementations§
impl Freeze for BadSmallStringError
impl RefUnwindSafe for BadSmallStringError
impl Send for BadSmallStringError
impl Sync for BadSmallStringError
impl Unpin for BadSmallStringError
impl UnsafeUnpin for BadSmallStringError
impl UnwindSafe for BadSmallStringError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more