pub enum SpecificFragmentInfo {
Show 20 variants
Generic,
GeneratedContent(Box<GeneratedContentInfo>),
Iframe(IframeFragmentInfo),
Image(Box<ImageFragmentInfo>),
Media(Box<MediaFragmentInfo>),
Canvas(Box<CanvasFragmentInfo>),
Svg(Box<SvgFragmentInfo>),
InlineAbsoluteHypothetical(InlineAbsoluteHypotheticalFragmentInfo),
InlineBlock(InlineBlockFragmentInfo),
InlineAbsolute(InlineAbsoluteFragmentInfo),
ScannedText(Box<ScannedTextFragmentInfo>),
Table,
TableCell,
TableColumn(TableColumnFragmentInfo),
TableRow,
TableWrapper,
Multicol,
MulticolColumn,
UnscannedText(Box<UnscannedTextFragmentInfo>),
TruncatedFragment(Box<TruncatedFragmentInfo>),
}
Expand description
Info specific to the kind of fragment.
Keep this enum small. As in, no more than one word. Or pcwalton will yell at you.
Variants§
Generic
GeneratedContent(Box<GeneratedContentInfo>)
A piece of generated content that cannot be resolved into ScannedText
until the generated
content resolution phase (e.g. an ordered list item marker).
Iframe(IframeFragmentInfo)
Image(Box<ImageFragmentInfo>)
Media(Box<MediaFragmentInfo>)
Canvas(Box<CanvasFragmentInfo>)
Svg(Box<SvgFragmentInfo>)
InlineAbsoluteHypothetical(InlineAbsoluteHypotheticalFragmentInfo)
A hypothetical box (see CSS 2.1 § 10.3.7) for an absolutely-positioned block that was
declared with display: inline;
.
InlineBlock(InlineBlockFragmentInfo)
InlineAbsolute(InlineAbsoluteFragmentInfo)
An inline fragment that establishes an absolute containing block for its descendants (i.e. a positioned inline fragment).
ScannedText(Box<ScannedTextFragmentInfo>)
Table
TableCell
TableColumn(TableColumnFragmentInfo)
TableRow
TableWrapper
Multicol
MulticolColumn
UnscannedText(Box<UnscannedTextFragmentInfo>)
TruncatedFragment(Box<TruncatedFragmentInfo>)
A container for a fragment that got truncated by text-overflow. “Totally truncated fragments” are not rendered at all. Text fragments may be partially truncated (in which case this renders like a text fragment). Other fragments can only be totally truncated or not truncated at all.
Implementations§
source§impl SpecificFragmentInfo
impl SpecificFragmentInfo
fn restyle_damage(&self) -> RestyleDamage
pub fn get_type(&self) -> &'static str
Trait Implementations§
source§impl Clone for SpecificFragmentInfo
impl Clone for SpecificFragmentInfo
source§fn clone(&self) -> SpecificFragmentInfo
fn clone(&self) -> SpecificFragmentInfo
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for SpecificFragmentInfo
impl !RefUnwindSafe for SpecificFragmentInfo
impl Send for SpecificFragmentInfo
impl Sync for SpecificFragmentInfo
impl Unpin for SpecificFragmentInfo
impl !UnwindSafe for SpecificFragmentInfo
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