Enum b4s::SortedStringCreationError
source · pub enum SortedStringCreationError {
NotSorted,
EmptyHaystack,
}Expand description
Error that can occur when creating a SortedString.
Variants§
Trait Implementations§
source§impl Clone for SortedStringCreationError
impl Clone for SortedStringCreationError
source§fn clone(&self) -> SortedStringCreationError
fn clone(&self) -> SortedStringCreationError
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 SortedStringCreationError
impl Debug for SortedStringCreationError
source§impl Display for SortedStringCreationError
impl Display for SortedStringCreationError
source§impl Error for SortedStringCreationError
impl Error for SortedStringCreationError
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 Hash for SortedStringCreationError
impl Hash for SortedStringCreationError
source§impl Ord for SortedStringCreationError
impl Ord for SortedStringCreationError
source§fn cmp(&self, other: &SortedStringCreationError) -> Ordering
fn cmp(&self, other: &SortedStringCreationError) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere Self: Sized,
Compares and returns the maximum of two values. Read more
source§impl PartialEq<SortedStringCreationError> for SortedStringCreationError
impl PartialEq<SortedStringCreationError> for SortedStringCreationError
source§fn eq(&self, other: &SortedStringCreationError) -> bool
fn eq(&self, other: &SortedStringCreationError) -> bool
This method tests for
self and other values to be equal, and is used
by ==.source§impl PartialOrd<SortedStringCreationError> for SortedStringCreationError
impl PartialOrd<SortedStringCreationError> for SortedStringCreationError
source§fn partial_cmp(&self, other: &SortedStringCreationError) -> Option<Ordering>
fn partial_cmp(&self, other: &SortedStringCreationError) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Copy for SortedStringCreationError
impl Eq for SortedStringCreationError
impl StructuralEq for SortedStringCreationError
impl StructuralPartialEq for SortedStringCreationError
Auto Trait Implementations§
impl RefUnwindSafe for SortedStringCreationError
impl Send for SortedStringCreationError
impl Sync for SortedStringCreationError
impl Unpin for SortedStringCreationError
impl UnwindSafe for SortedStringCreationError
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