Struct html5tokenizer::offset::NoopOffset
source · pub struct NoopOffset;
Expand description
A zero-sized no-op implementation of Offset
(for when you don’t want to track offsets).
Trait Implementations§
source§impl Add<usize> for NoopOffset
impl Add<usize> for NoopOffset
§type Output = NoopOffset
type Output = NoopOffset
The resulting type after applying the
+
operator.source§impl AddAssign<usize> for NoopOffset
impl AddAssign<usize> for NoopOffset
source§fn add_assign(&mut self, _rhs: usize)
fn add_assign(&mut self, _rhs: usize)
Performs the
+=
operation. Read moresource§impl Clone for NoopOffset
impl Clone for NoopOffset
source§fn clone(&self) -> NoopOffset
fn clone(&self) -> NoopOffset
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 NoopOffset
impl Debug for NoopOffset
source§impl Default for NoopOffset
impl Default for NoopOffset
source§fn default() -> NoopOffset
fn default() -> NoopOffset
Returns the “default value” for a type. Read more
source§impl Ord for NoopOffset
impl Ord for NoopOffset
source§fn cmp(&self, other: &NoopOffset) -> Ordering
fn cmp(&self, other: &NoopOffset) -> 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 NoopOffset
impl PartialEq for NoopOffset
source§fn eq(&self, other: &NoopOffset) -> bool
fn eq(&self, other: &NoopOffset) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for NoopOffset
impl PartialOrd for NoopOffset
source§fn partial_cmp(&self, other: &NoopOffset) -> Option<Ordering>
fn partial_cmp(&self, other: &NoopOffset) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read moresource§impl Sub<usize> for NoopOffset
impl Sub<usize> for NoopOffset
§type Output = NoopOffset
type Output = NoopOffset
The resulting type after applying the
-
operator.impl Copy for NoopOffset
impl Eq for NoopOffset
impl Offset for NoopOffset
impl StructuralEq for NoopOffset
impl StructuralPartialEq for NoopOffset
Auto Trait Implementations§
impl RefUnwindSafe for NoopOffset
impl Send for NoopOffset
impl Sync for NoopOffset
impl Unpin for NoopOffset
impl UnwindSafe for NoopOffset
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<R> Position<NoopOffset> for Rwhere
R: Reader,
impl<R> Position<NoopOffset> for Rwhere
R: Reader,
source§fn position(&self) -> NoopOffset
fn position(&self) -> NoopOffset
Returns the byte index of the current position.