pub enum CodeUnitStringError {
TooLong {
len: usize,
max: usize,
},
LoneSurrogate(InvalidSurrogate),
}Expand description
Failure to construct or project an exact code-unit string.
Variants§
TooLong
The requested code-unit count cannot be represented by an allocation.
LoneSurrogate(InvalidSurrogate)
The unit sequence contains an unpaired surrogate.
Trait Implementations§
Source§impl Clone for CodeUnitStringError
impl Clone for CodeUnitStringError
Source§fn clone(&self) -> CodeUnitStringError
fn clone(&self) -> CodeUnitStringError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 CodeUnitStringError
impl Debug for CodeUnitStringError
Source§impl Display for CodeUnitStringError
impl Display for CodeUnitStringError
impl Eq for CodeUnitStringError
Source§impl Error for CodeUnitStringError
impl Error for CodeUnitStringError
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 CodeUnitStringError
impl PartialEq for CodeUnitStringError
impl StructuralPartialEq for CodeUnitStringError
Auto Trait Implementations§
impl Freeze for CodeUnitStringError
impl RefUnwindSafe for CodeUnitStringError
impl Send for CodeUnitStringError
impl Sync for CodeUnitStringError
impl Unpin for CodeUnitStringError
impl UnsafeUnpin for CodeUnitStringError
impl UnwindSafe for CodeUnitStringError
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