pub enum CommentError {
UnmatchedMultilineCommentStart {
location: Location,
},
UnterminatedMultiLineComment {
start: Location,
},
}Expand description
Enum for returning errors withe Comment parsing
Variants§
UnmatchedMultilineCommentStart
Found a multiline comment terminator */ without a matching opener /*
UnterminatedMultiLineComment
Found a multiline comment that is not properly terminated before EOF
Trait Implementations§
Source§impl Clone for CommentError
impl Clone for CommentError
Source§fn clone(&self) -> CommentError
fn clone(&self) -> CommentError
Returns a duplicate 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 CommentError
impl Debug for CommentError
Source§impl Display for CommentError
impl Display for CommentError
Source§impl Error for CommentError
impl Error for CommentError
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<CommentError> for DocError
impl From<CommentError> for DocError
Source§fn from(e: CommentError) -> Self
fn from(e: CommentError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CommentError
impl PartialEq for CommentError
impl Eq for CommentError
impl StructuralPartialEq for CommentError
Auto Trait Implementations§
impl Freeze for CommentError
impl RefUnwindSafe for CommentError
impl Send for CommentError
impl Sync for CommentError
impl Unpin for CommentError
impl UnwindSafe for CommentError
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