[−][src]Struct cssparser::SourceLocation
The line and column number for a given position within the input.
Fields
line: u32The line number, starting at 0 for the first line, unless with_first_line_number was used.
column: u32The column number within a line, starting at 1 for first the character of the line. Column numbers are counted in UTF-16 code units.
Methods
impl SourceLocation[src]
pub fn new_basic_unexpected_token_error<'i>(
self,
token: Token<'i>
) -> BasicParseError<'i>[src]
self,
token: Token<'i>
) -> BasicParseError<'i>
Create a new BasicParseError at this location for an unexpected token
pub fn new_unexpected_token_error<'i, E>(
self,
token: Token<'i>
) -> ParseError<'i, E>[src]
self,
token: Token<'i>
) -> ParseError<'i, E>
Create a new ParseError at this location for an unexpected token
pub fn new_custom_error<'i, E1: Into<E2>, E2>(
self,
error: E1
) -> ParseError<'i, E2>[src]
self,
error: E1
) -> ParseError<'i, E2>
Create a new custom ParseError at this location
Trait Implementations
impl Clone for SourceLocation[src]
fn clone(&self) -> SourceLocation[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl Copy for SourceLocation[src]
impl Eq for SourceLocation[src]
impl PartialEq<SourceLocation> for SourceLocation[src]
fn eq(&self, other: &SourceLocation) -> bool[src]
fn ne(&self, other: &SourceLocation) -> bool[src]
impl Debug for SourceLocation[src]
Auto Trait Implementations
impl Send for SourceLocation
impl Sync for SourceLocation
impl Unpin for SourceLocation
impl UnwindSafe for SourceLocation
impl RefUnwindSafe for SourceLocation
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> From<T> for T[src]
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,