pub struct CommentError {
pub line: usize,
}Expand description
A block comment that never closed. Reported on its own rather than left to the JSON parser, which would blame whatever the runaway comment swallowed.
Fields§
§line: usizeTrait 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 (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 CommentError
Source§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 StyleError
impl From<CommentError> for StyleError
Source§fn from(source: CommentError) -> Self
fn from(source: CommentError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for CommentError
impl RefUnwindSafe for CommentError
impl Send for CommentError
impl Sync for CommentError
impl Unpin for CommentError
impl UnsafeUnpin 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