pub struct ResolveGeneratedContent<'a> {
layout_context: &'a LayoutContext<'a>,
list_item: Counter,
counters: HashMap<String, Counter>,
quote: u32,
}
Expand description
The generated content resolution traversal.
Fields§
§layout_context: &'a LayoutContext<'a>
The layout context.
list_item: Counter
The counter representing an ordered list item.
counters: HashMap<String, Counter>
Named CSS counters.
quote: u32
The level of quote nesting.
Implementations§
source§impl<'a> ResolveGeneratedContent<'a>
impl<'a> ResolveGeneratedContent<'a>
sourcepub fn new(layout_context: &'a LayoutContext<'_>) -> ResolveGeneratedContent<'a>
pub fn new(layout_context: &'a LayoutContext<'_>) -> ResolveGeneratedContent<'a>
Creates a new generated content resolution traversal.
Trait Implementations§
source§impl<'a> InorderFlowTraversal for ResolveGeneratedContent<'a>
impl<'a> InorderFlowTraversal for ResolveGeneratedContent<'a>
source§fn process(&mut self, flow: &mut dyn Flow, level: u32)
fn process(&mut self, flow: &mut dyn Flow, level: u32)
The operation to perform. Returns the level of the tree we’re at.
source§fn should_process_subtree(&mut self, flow: &mut dyn Flow) -> bool
fn should_process_subtree(&mut self, flow: &mut dyn Flow) -> bool
Returns true if this node should be processed and false if neither this node nor its
descendants should be processed.
Auto Trait Implementations§
impl<'a> Freeze for ResolveGeneratedContent<'a>
impl<'a> !RefUnwindSafe for ResolveGeneratedContent<'a>
impl<'a> Send for ResolveGeneratedContent<'a>
impl<'a> Sync for ResolveGeneratedContent<'a>
impl<'a> Unpin for ResolveGeneratedContent<'a>
impl<'a> !UnwindSafe for ResolveGeneratedContent<'a>
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> 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 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