Enum winnow::stream::CompareResult
source · pub enum CompareResult {
Ok(usize),
Incomplete,
Error,
}
Expand description
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
Trait Implementations§
source§impl Debug for CompareResult
impl Debug for CompareResult
source§impl PartialEq for CompareResult
impl PartialEq for CompareResult
source§fn eq(&self, other: &CompareResult) -> bool
fn eq(&self, other: &CompareResult) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Eq for CompareResult
impl StructuralPartialEq for CompareResult
Auto Trait Implementations§
impl RefUnwindSafe for CompareResult
impl Send for CompareResult
impl Sync for CompareResult
impl Unpin for CompareResult
impl UnwindSafe for CompareResult
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