pub enum LineEndingError {
Mixed,
BareCarriageReturn,
}Expand description
Error returned while resolving a document’s line ending.
Variants§
Mixed
A document mixes CRLF and LF line endings.
BareCarriageReturn
A document has a carriage return that is not followed by a line feed.
Trait Implementations§
Source§impl Clone for LineEndingError
impl Clone for LineEndingError
Source§fn clone(&self) -> LineEndingError
fn clone(&self) -> LineEndingError
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for LineEndingError
Source§impl Debug for LineEndingError
impl Debug for LineEndingError
Source§impl Display for LineEndingError
impl Display for LineEndingError
Source§impl Error for LineEndingError
impl Error for LineEndingError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns 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<LineEndingError> for DocumentError
impl From<LineEndingError> for DocumentError
Source§fn from(source: LineEndingError) -> Self
fn from(source: LineEndingError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for LineEndingError
impl RefUnwindSafe for LineEndingError
impl Send for LineEndingError
impl Sync for LineEndingError
impl Unpin for LineEndingError
impl UnsafeUnpin for LineEndingError
impl UnwindSafe for LineEndingError
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