pub struct RawUriSpan {
pub line: NonZeroUsize,
pub column: Option<NonZeroUsize>,
}Expand description
A span of a RawUri in the document.
The span can be used to give more precise error messages.
Fields§
§line: NonZeroUsizeThe line of the URI.
The line is 1-based.
column: Option<NonZeroUsize>The column of the URI if computable.
The column is 1-based.
This is None, if the column can’t be computed exactly,
e.g. when it comes from the html5ever parser.
Trait Implementations§
Source§impl Clone for RawUriSpan
impl Clone for RawUriSpan
Source§fn clone(&self) -> RawUriSpan
fn clone(&self) -> RawUriSpan
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 RawUriSpan
impl Debug for RawUriSpan
Source§impl Hash for RawUriSpan
impl Hash for RawUriSpan
Source§impl PartialEq for RawUriSpan
impl PartialEq for RawUriSpan
impl Copy for RawUriSpan
impl Eq for RawUriSpan
impl StructuralPartialEq for RawUriSpan
Auto Trait Implementations§
impl Freeze for RawUriSpan
impl RefUnwindSafe for RawUriSpan
impl Send for RawUriSpan
impl Sync for RawUriSpan
impl Unpin for RawUriSpan
impl UnsafeUnpin for RawUriSpan
impl UnwindSafe for RawUriSpan
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more