pub struct DummyElementContext;Expand description
A dummy ElementContext that returns default values to any query.
Trait Implementations§
Source§impl Clone for DummyElementContext
impl Clone for DummyElementContext
Source§fn clone(&self) -> DummyElementContext
fn clone(&self) -> DummyElementContext
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 DummyElementContext
impl Debug for DummyElementContext
Source§impl ElementContext for DummyElementContext
impl ElementContext for DummyElementContext
Source§fn get_attr(&self, _attr: &LocalName, _namespace: &Namespace) -> Option<String>
fn get_attr(&self, _attr: &LocalName, _namespace: &Namespace) -> Option<String>
Return the value of the given custom attribute if it exists.
Source§fn opaque_element(&self) -> Option<OpaqueElement>
fn opaque_element(&self) -> Option<OpaqueElement>
Opaque handle to the element.
Source§fn opaque_parent(&self) -> Option<OpaqueNode>
fn opaque_parent(&self) -> Option<OpaqueNode>
Opaque handle to the element’s parent node.
Source§fn get_tree_counting_result(
&self,
_: &mut TreeCountingCaches,
) -> TreeCountingResult
fn get_tree_counting_result( &self, _: &mut TreeCountingCaches, ) -> TreeCountingResult
Traverse the siblings of the element, returning the element’s sibling-index()
and sibling-count(). Also populates
caches with the sibling-index() and
sibling-count() values for all siblings of this element.Source§impl PartialEq for DummyElementContext
impl PartialEq for DummyElementContext
impl StructuralPartialEq for DummyElementContext
Auto Trait Implementations§
impl Freeze for DummyElementContext
impl RefUnwindSafe for DummyElementContext
impl Send for DummyElementContext
impl Sync for DummyElementContext
impl Unpin for DummyElementContext
impl UnsafeUnpin for DummyElementContext
impl UnwindSafe for DummyElementContext
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<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 moreSource§impl<T> MaybeBoxed<Box<T>> for T
impl<T> MaybeBoxed<Box<T>> for T
Source§fn maybe_boxed(self) -> Box<T>
fn maybe_boxed(self) -> Box<T>
Convert
Source§impl<T> MaybeBoxed<T> for T
impl<T> MaybeBoxed<T> for T
Source§fn maybe_boxed(self) -> T
fn maybe_boxed(self) -> T
Convert