pub struct ShortStringError(/* private fields */);Expand description
Error returned when constructing a ShortString from a string that exceeds MAX_SHORT_STRING_LENGTH
Trait Implementations§
Source§impl Clone for ShortStringError
impl Clone for ShortStringError
Source§fn clone(&self) -> ShortStringError
fn clone(&self) -> ShortStringError
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 ShortStringError
impl Debug for ShortStringError
Source§impl Display for ShortStringError
impl Display for ShortStringError
Source§impl Error for ShortStringError
impl Error for ShortStringError
1.30.0 · 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 PartialEq for ShortStringError
impl PartialEq for ShortStringError
impl Eq for ShortStringError
impl StructuralPartialEq for ShortStringError
Auto Trait Implementations§
impl Freeze for ShortStringError
impl RefUnwindSafe for ShortStringError
impl Send for ShortStringError
impl Sync for ShortStringError
impl Unpin for ShortStringError
impl UnsafeUnpin for ShortStringError
impl UnwindSafe for ShortStringError
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