pub enum SemanticStringError {
InvalidContent,
ExceedsMaximumLength,
}Expand description
Failures that can occur when a SemanticString is created or modified
Variants§
Trait Implementations§
source§impl Clone for SemanticStringError
impl Clone for SemanticStringError
source§fn clone(&self) -> SemanticStringError
fn clone(&self) -> SemanticStringError
Returns a copy 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 SemanticStringError
impl Debug for SemanticStringError
source§impl Display for SemanticStringError
impl Display for SemanticStringError
source§impl Error for SemanticStringError
impl Error for SemanticStringError
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<FixedSizeByteStringModificationError> for SemanticStringError
impl From<FixedSizeByteStringModificationError> for SemanticStringError
source§fn from(_: FixedSizeByteStringModificationError) -> Self
fn from(_: FixedSizeByteStringModificationError) -> Self
Converts to this type from the input type.
source§impl Hash for SemanticStringError
impl Hash for SemanticStringError
source§impl PartialEq for SemanticStringError
impl PartialEq for SemanticStringError
source§fn eq(&self, other: &SemanticStringError) -> bool
fn eq(&self, other: &SemanticStringError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.impl Copy for SemanticStringError
impl Eq for SemanticStringError
impl StructuralPartialEq for SemanticStringError
Auto Trait Implementations§
impl Freeze for SemanticStringError
impl RefUnwindSafe for SemanticStringError
impl Send for SemanticStringError
impl Sync for SemanticStringError
impl Unpin for SemanticStringError
impl UnwindSafe for SemanticStringError
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