Lines Matching refs:CompareResult
9 use crate::traits::{Compare, CompareResult};
124 CompareResult::Ok => Ok((input.slice(2..), input.slice(0..2))), in crlf()
125 CompareResult::Incomplete => Err(Err::Incomplete(Needed::Size(2))), in crlf()
126 CompareResult::Error => { in crlf()
171 CompareResult::Incomplete => Err(Err::Incomplete(Needed::Unknown)), in not_line_ending()
172 CompareResult::Error => { in not_line_ending()
176 CompareResult::Ok => Ok((input.slice(index..), input.slice(..index))), in not_line_ending()
207 CompareResult::Ok => Ok((input.slice(1..), input.slice(0..1))), in line_ending()
208 CompareResult::Incomplete => Err(Err::Incomplete(Needed::Size(1))), in line_ending()
209 CompareResult::Error => { in line_ending()
212 CompareResult::Ok => Ok((input.slice(2..), input.slice(0..2))), in line_ending()
213 CompareResult::Incomplete => Err(Err::Incomplete(Needed::Size(2))), in line_ending()
214 CompareResult::Error => Err(Err::Error(E::from_error_kind(input, ErrorKind::CrLf))), in line_ending()