pub enum StringModificationError {
InvalidCharacter,
InsertWouldExceedCapacity,
}Expand description
Error which can occur when a String is modified.
Variants§
InvalidCharacter
A string with unsupported unicode code points greater or equal 128 (U+0080) was provided
InsertWouldExceedCapacity
The content that shall be added would exceed the maximum capacity of the
String.
Trait Implementations§
Source§impl Clone for StringModificationError
impl Clone for StringModificationError
Source§fn clone(&self) -> StringModificationError
fn clone(&self) -> StringModificationError
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 StringModificationError
impl Debug for StringModificationError
Source§impl Display for StringModificationError
impl Display for StringModificationError
Source§impl Error for StringModificationError
impl Error for StringModificationError
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 From<StringModificationError> for SemanticStringError
impl From<StringModificationError> for SemanticStringError
Source§fn from(value: StringModificationError) -> Self
fn from(value: StringModificationError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for StringModificationError
impl PartialEq for StringModificationError
impl Copy for StringModificationError
impl Eq for StringModificationError
impl StructuralPartialEq for StringModificationError
Auto Trait Implementations§
impl Freeze for StringModificationError
impl RefUnwindSafe for StringModificationError
impl Send for StringModificationError
impl Sync for StringModificationError
impl Unpin for StringModificationError
impl UnwindSafe for StringModificationError
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