Struct layout_2013::construct::InlineFragmentsAccumulator
source · struct InlineFragmentsAccumulator {
fragments: IntermediateInlineFragments,
enclosing_node: Option<InlineFragmentNodeInfo>,
restyle_damage: RestyleDamage,
bidi_control_chars: Option<(&'static str, &'static str)>,
}
Expand description
Holds inline fragments that we’re gathering for children of an inline node.
Fields§
§fragments: IntermediateInlineFragments
The list of fragments.
enclosing_node: Option<InlineFragmentNodeInfo>
Information about the inline box directly enclosing the fragments being gathered, if any.
inline::InlineFragmentNodeInfo
also stores flags indicating whether a fragment is the
first and/or last of the corresponding inline box. This InlineFragmentsAccumulator
may
represent only one side of an {ib} split, so we store these flags as if it represented only
one fragment. to_intermediate_inline_fragments
later splits this hypothetical fragment
into pieces, leaving the FIRST_FRAGMENT_OF_ELEMENT
and LAST_FRAGMENT_OF_ELEMENT
flags,
if present, on the first and last fragments of the output.
restyle_damage: RestyleDamage
Restyle damage to use for fragments created in this node.
bidi_control_chars: Option<(&'static str, &'static str)>
Bidi control characters to insert before and after these fragments.
Implementations§
source§impl InlineFragmentsAccumulator
impl InlineFragmentsAccumulator
fn new() -> InlineFragmentsAccumulator
fn from_inline_node<'dom>( node: &impl ThreadSafeLayoutNode<'dom>, style_context: &SharedStyleContext<'_>, ) -> InlineFragmentsAccumulator
fn push(&mut self, fragment: Fragment)
fn push_all(&mut self, fragments: IntermediateInlineFragments)
fn get_intermediate_inline_fragments<'dom, N>(
self,
context: &SharedStyleContext<'_>,
) -> IntermediateInlineFragmentswhere
N: ThreadSafeLayoutNode<'dom>,
Auto Trait Implementations§
impl Freeze for InlineFragmentsAccumulator
impl !RefUnwindSafe for InlineFragmentsAccumulator
impl Send for InlineFragmentsAccumulator
impl Sync for InlineFragmentsAccumulator
impl Unpin for InlineFragmentsAccumulator
impl !UnwindSafe for InlineFragmentsAccumulator
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
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>
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>
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