pub struct ErrorLocation {
pub original_pos: usize,
}
Fields§
§original_pos: usize
Implementations§
Source§impl ErrorLocation
impl ErrorLocation
Sourcepub fn get_line_column_from_error(&self, css_string: &str) -> (usize, usize)
pub fn get_line_column_from_error(&self, css_string: &str) -> (usize, usize)
Given an error location, returns the (line, column)
Trait Implementations§
Source§impl Clone for ErrorLocation
impl Clone for ErrorLocation
Source§fn clone(&self) -> ErrorLocation
fn clone(&self) -> ErrorLocation
Returns a copy 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 ErrorLocation
impl Debug for ErrorLocation
Source§impl Hash for ErrorLocation
impl Hash for ErrorLocation
Source§impl Ord for ErrorLocation
impl Ord for ErrorLocation
Source§fn cmp(&self, other: &ErrorLocation) -> Ordering
fn cmp(&self, other: &ErrorLocation) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ErrorLocation
impl PartialEq for ErrorLocation
Source§impl PartialOrd for ErrorLocation
impl PartialOrd for ErrorLocation
impl Copy for ErrorLocation
impl Eq for ErrorLocation
impl StructuralPartialEq for ErrorLocation
Auto Trait Implementations§
impl Freeze for ErrorLocation
impl RefUnwindSafe for ErrorLocation
impl Send for ErrorLocation
impl Sync for ErrorLocation
impl Unpin for ErrorLocation
impl UnwindSafe for ErrorLocation
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