Enum CompareResult

enum CompareResult

Result of Compare::compare

Variants

Ok(usize)

Comparison was successful

usize is the end of the successful match within the buffer. This is most relevant for caseless UTF-8 where Compare::compare's parameter might be a different length than the match within the buffer.

Incomplete

We need more data to be sure

Error

Comparison failed

Implementations

impl Debug for CompareResult

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl Eq for CompareResult

impl Freeze for CompareResult

impl PartialEq for CompareResult

fn eq(self: &Self, other: &CompareResult) -> bool

impl RefUnwindSafe for CompareResult

impl Send for CompareResult

impl StructuralPartialEq for CompareResult

impl Sync for CompareResult

impl Unpin for CompareResult

impl UnsafeUnpin for CompareResult

impl UnwindSafe for CompareResult

impl<T> Any for CompareResult

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for CompareResult

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for CompareResult

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> From for CompareResult

fn from(t: T) -> T

Returns the argument unchanged.

impl<T, U> Into for CompareResult

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for CompareResult

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for CompareResult

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>