pub struct Packed<T: NativeElement>(/* private fields */);Expand description
A packed element of a static type.
Implementations§
Source§impl<T: NativeElement> Packed<T>
impl<T: NativeElement> Packed<T>
Sourcepub fn from_ref(content: &Content) -> Option<&Self>
pub fn from_ref(content: &Content) -> Option<&Self>
Try to cast type-erased content into a statically known packed element.
Sourcepub fn from_mut(content: &mut Content) -> Option<&mut Self>
pub fn from_mut(content: &mut Content) -> Option<&mut Self>
Try to cast type-erased content into a statically known packed element.
Sourcepub fn from_owned(content: Content) -> Result<Self, Content>
pub fn from_owned(content: Content) -> Result<Self, Content>
Try to cast type-erased content into a statically known packed element.
Sourcepub fn set_location(&mut self, location: Location)
pub fn set_location(&mut self, location: Location)
Sets the location of the element.
Source§impl Packed<InlineElem>
impl Packed<InlineElem>
Sourcepub fn layout(
&self,
engine: &mut Engine<'_>,
locator: Locator<'_>,
styles: StyleChain<'_>,
region: Size,
) -> SourceResult<Vec<InlineItem>>
pub fn layout( &self, engine: &mut Engine<'_>, locator: Locator<'_>, styles: StyleChain<'_>, region: Size, ) -> SourceResult<Vec<InlineItem>>
Layout the element.
Source§impl Packed<AttachElem>
impl Packed<AttachElem>
Sourcepub fn merge_base(&self) -> Option<Self>
pub fn merge_base(&self) -> Option<Self>
If an AttachElem’s base is also an AttachElem, merge attachments into the base AttachElem where possible.
Source§impl Packed<BibliographyElem>
impl Packed<BibliographyElem>
Sourcepub fn realize_title(&self, styles: StyleChain<'_>) -> Option<Content>
pub fn realize_title(&self, styles: StyleChain<'_>) -> Option<Content>
Produces the heading for the bibliography, if any.
Source§impl Packed<CiteGroup>
impl Packed<CiteGroup>
pub fn realize(&self, engine: &mut Engine<'_>) -> SourceResult<Content>
Source§impl Packed<FootnoteElem>
impl Packed<FootnoteElem>
Sourcepub fn realize(
&self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> SourceResult<(Destination, Content)>
pub fn realize( &self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> SourceResult<(Destination, Content)>
Returns the linking location and the resolved numbers.
Sourcepub fn declaration_location(&self, engine: &Engine<'_>) -> StrResult<Location>
pub fn declaration_location(&self, engine: &Engine<'_>) -> StrResult<Location>
Returns the location of the definition of this footnote.
Source§impl Packed<FootnoteEntry>
impl Packed<FootnoteEntry>
Sourcepub fn realize(
&self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> SourceResult<(Content, Content)>
pub fn realize( &self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> SourceResult<(Content, Content)>
Returns the location which should be attached to the entry, the linking destination, the resolved numbers, and the body content.
Source§impl Packed<OutlineElem>
impl Packed<OutlineElem>
Sourcepub fn realize_title(&self, styles: StyleChain<'_>) -> Option<Content>
pub fn realize_title(&self, styles: StyleChain<'_>) -> Option<Content>
Produces the heading for the outline, if any.
Sourcepub fn realize_flat(
&self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> SourceResult<Vec<Packed<OutlineEntry>>>
pub fn realize_flat( &self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> SourceResult<Vec<Packed<OutlineEntry>>>
Realizes the entries in a flat fashion.
Sourcepub fn realize_tree(
&self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> SourceResult<Vec<OutlineNode>>
pub fn realize_tree( &self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> SourceResult<Vec<OutlineNode>>
Realizes the entries in a tree fashion.
Source§impl Packed<RefElem>
impl Packed<RefElem>
Sourcepub fn realize(
&self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> SourceResult<Content>
pub fn realize( &self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> SourceResult<Content>
Realize as a linked, textual reference.
Source§impl Packed<ImageElem>
impl Packed<ImageElem>
Sourcepub fn decode(
&self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> SourceResult<Image>
pub fn decode( &self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> SourceResult<Image>
Decodes the image.
Trait Implementations§
Source§impl<T: NativeElement> AsMut<T> for Packed<T>
impl<T: NativeElement> AsMut<T> for Packed<T>
Source§impl<T: NativeElement> AsRef<T> for Packed<T>
impl<T: NativeElement> AsRef<T> for Packed<T>
Source§impl Count for Packed<CounterUpdateElem>
impl Count for Packed<CounterUpdateElem>
Source§fn update(&self) -> Option<CounterUpdate>
fn update(&self) -> Option<CounterUpdate>
Source§impl Count for Packed<EquationElem>
impl Count for Packed<EquationElem>
Source§fn update(&self) -> Option<CounterUpdate>
fn update(&self) -> Option<CounterUpdate>
Source§impl Count for Packed<FigureElem>
impl Count for Packed<FigureElem>
Source§fn update(&self) -> Option<CounterUpdate>
fn update(&self) -> Option<CounterUpdate>
Source§impl Count for Packed<FootnoteElem>
impl Count for Packed<FootnoteElem>
Source§fn update(&self) -> Option<CounterUpdate>
fn update(&self) -> Option<CounterUpdate>
Source§impl Count for Packed<HeadingElem>
impl Count for Packed<HeadingElem>
Source§fn update(&self) -> Option<CounterUpdate>
fn update(&self) -> Option<CounterUpdate>
Source§impl Count for Packed<ParLineMarker>
impl Count for Packed<ParLineMarker>
Source§fn update(&self) -> Option<CounterUpdate>
fn update(&self) -> Option<CounterUpdate>
Source§impl<T: NativeElement> Deref for Packed<T>
impl<T: NativeElement> Deref for Packed<T>
Source§impl<T: NativeElement> DerefMut for Packed<T>
impl<T: NativeElement> DerefMut for Packed<T>
Source§impl<T: NativeElement + FromValue> FromValue for Packed<T>
impl<T: NativeElement + FromValue> FromValue for Packed<T>
Source§fn from_value(value: Value) -> HintedStrResult<Self>
fn from_value(value: Value) -> HintedStrResult<Self>
Self.Source§impl<T: NativeElement> Hash for Packed<T>
impl<T: NativeElement> Hash for Packed<T>
Source§impl<T: NativeElement + IntoValue> IntoValue for Packed<T>
impl<T: NativeElement + IntoValue> IntoValue for Packed<T>
Source§fn into_value(self) -> Value
fn into_value(self) -> Value
Source§impl LocalName for Packed<BibliographyElem>
impl LocalName for Packed<BibliographyElem>
Source§const KEY: &'static str = "bibliography"
const KEY: &'static str = "bibliography"
Source§fn local_name(lang: Lang, region: Option<Region>) -> &'static str
fn local_name(lang: Lang, region: Option<Region>) -> &'static str
Source§fn local_name_in(styles: StyleChain<'_>) -> &'static strwhere
Self: Sized,
fn local_name_in(styles: StyleChain<'_>) -> &'static strwhere
Self: Sized,
Source§impl LocalName for Packed<EquationElem>
impl LocalName for Packed<EquationElem>
Source§const KEY: &'static str = "equation"
const KEY: &'static str = "equation"
Source§fn local_name(lang: Lang, region: Option<Region>) -> &'static str
fn local_name(lang: Lang, region: Option<Region>) -> &'static str
Source§fn local_name_in(styles: StyleChain<'_>) -> &'static strwhere
Self: Sized,
fn local_name_in(styles: StyleChain<'_>) -> &'static strwhere
Self: Sized,
Source§impl LocalName for Packed<FootnoteElem>
impl LocalName for Packed<FootnoteElem>
Source§const KEY: &'static str = "footnote"
const KEY: &'static str = "footnote"
Source§fn local_name(lang: Lang, region: Option<Region>) -> &'static str
fn local_name(lang: Lang, region: Option<Region>) -> &'static str
Source§fn local_name_in(styles: StyleChain<'_>) -> &'static strwhere
Self: Sized,
fn local_name_in(styles: StyleChain<'_>) -> &'static strwhere
Self: Sized,
Source§impl LocalName for Packed<HeadingElem>
impl LocalName for Packed<HeadingElem>
Source§fn local_name(lang: Lang, region: Option<Region>) -> &'static str
fn local_name(lang: Lang, region: Option<Region>) -> &'static str
Source§fn local_name_in(styles: StyleChain<'_>) -> &'static strwhere
Self: Sized,
fn local_name_in(styles: StyleChain<'_>) -> &'static strwhere
Self: Sized,
Source§impl LocalName for Packed<ImageElem>
impl LocalName for Packed<ImageElem>
Source§fn local_name(lang: Lang, region: Option<Region>) -> &'static str
fn local_name(lang: Lang, region: Option<Region>) -> &'static str
Source§fn local_name_in(styles: StyleChain<'_>) -> &'static strwhere
Self: Sized,
fn local_name_in(styles: StyleChain<'_>) -> &'static strwhere
Self: Sized,
Source§impl LocalName for Packed<OutlineElem>
impl LocalName for Packed<OutlineElem>
Source§fn local_name(lang: Lang, region: Option<Region>) -> &'static str
fn local_name(lang: Lang, region: Option<Region>) -> &'static str
Source§fn local_name_in(styles: StyleChain<'_>) -> &'static strwhere
Self: Sized,
fn local_name_in(styles: StyleChain<'_>) -> &'static strwhere
Self: Sized,
Source§impl LocalName for Packed<RawElem>
impl LocalName for Packed<RawElem>
Source§fn local_name(lang: Lang, region: Option<Region>) -> &'static str
fn local_name(lang: Lang, region: Option<Region>) -> &'static str
Source§fn local_name_in(styles: StyleChain<'_>) -> &'static strwhere
Self: Sized,
fn local_name_in(styles: StyleChain<'_>) -> &'static strwhere
Self: Sized,
Source§impl LocalName for Packed<TableElem>
impl LocalName for Packed<TableElem>
Source§fn local_name(lang: Lang, region: Option<Region>) -> &'static str
fn local_name(lang: Lang, region: Option<Region>) -> &'static str
Source§fn local_name_in(styles: StyleChain<'_>) -> &'static strwhere
Self: Sized,
fn local_name_in(styles: StyleChain<'_>) -> &'static strwhere
Self: Sized,
Source§impl Outlinable for Packed<EquationElem>
impl Outlinable for Packed<EquationElem>
Source§impl Outlinable for Packed<FigureElem>
impl Outlinable for Packed<FigureElem>
Source§impl Outlinable for Packed<HeadingElem>
impl Outlinable for Packed<HeadingElem>
Source§impl<T: NativeElement> PartialEq for Packed<T>
impl<T: NativeElement> PartialEq for Packed<T>
Source§impl PlainText for Packed<RawElem>
impl PlainText for Packed<RawElem>
Source§fn plain_text(&self, text: &mut EcoString)
fn plain_text(&self, text: &mut EcoString)
Source§impl PlainText for Packed<RawLine>
impl PlainText for Packed<RawLine>
Source§fn plain_text(&self, text: &mut EcoString)
fn plain_text(&self, text: &mut EcoString)
Source§impl PlainText for Packed<SmartQuoteElem>
impl PlainText for Packed<SmartQuoteElem>
Source§fn plain_text(&self, text: &mut EcoString)
fn plain_text(&self, text: &mut EcoString)
Source§impl PlainText for Packed<SpaceElem>
impl PlainText for Packed<SpaceElem>
Source§fn plain_text(&self, text: &mut EcoString)
fn plain_text(&self, text: &mut EcoString)
Source§impl PlainText for Packed<SymbolElem>
impl PlainText for Packed<SymbolElem>
Source§fn plain_text(&self, text: &mut EcoString)
fn plain_text(&self, text: &mut EcoString)
Source§impl PlainText for Packed<TextElem>
impl PlainText for Packed<TextElem>
Source§fn plain_text(&self, text: &mut EcoString)
fn plain_text(&self, text: &mut EcoString)
Source§impl Refable for Packed<EquationElem>
impl Refable for Packed<EquationElem>
Source§impl Refable for Packed<FigureElem>
impl Refable for Packed<FigureElem>
Source§impl Refable for Packed<HeadingElem>
impl Refable for Packed<HeadingElem>
Source§impl ResolvableCell for Packed<GridCell>
impl ResolvableCell for Packed<GridCell>
Source§fn resolve_cell(
self,
x: usize,
y: usize,
fill: &Option<Paint>,
align: Smart<Alignment>,
inset: Sides<Option<Rel<Length>>>,
stroke: Sides<Option<Option<Arc<Stroke<Abs>>>>>,
breakable: bool,
styles: StyleChain<'_>,
_: Smart<TableCellKind>,
) -> Cell
fn resolve_cell( self, x: usize, y: usize, fill: &Option<Paint>, align: Smart<Alignment>, inset: Sides<Option<Rel<Length>>>, stroke: Sides<Option<Option<Arc<Stroke<Abs>>>>>, breakable: bool, styles: StyleChain<'_>, _: Smart<TableCellKind>, ) -> Cell
breakable field.
Returns a final Cell.Source§fn colspan(&self, styles: StyleChain<'_>) -> NonZeroUsize
fn colspan(&self, styles: StyleChain<'_>) -> NonZeroUsize
Source§fn rowspan(&self, styles: StyleChain<'_>) -> NonZeroUsize
fn rowspan(&self, styles: StyleChain<'_>) -> NonZeroUsize
Source§impl ResolvableCell for Packed<TableCell>
impl ResolvableCell for Packed<TableCell>
Source§fn resolve_cell(
self,
x: usize,
y: usize,
fill: &Option<Paint>,
align: Smart<Alignment>,
inset: Sides<Option<Rel<Length>>>,
stroke: Sides<Option<Option<Arc<Stroke<Abs>>>>>,
breakable: bool,
styles: StyleChain<'_>,
kind: Smart<TableCellKind>,
) -> Cell
fn resolve_cell( self, x: usize, y: usize, fill: &Option<Paint>, align: Smart<Alignment>, inset: Sides<Option<Rel<Length>>>, stroke: Sides<Option<Option<Arc<Stroke<Abs>>>>>, breakable: bool, styles: StyleChain<'_>, kind: Smart<TableCellKind>, ) -> Cell
breakable field.
Returns a final Cell.Source§fn colspan(&self, styles: StyleChain<'_>) -> NonZeroUsize
fn colspan(&self, styles: StyleChain<'_>) -> NonZeroUsize
Source§fn rowspan(&self, styles: StyleChain<'_>) -> NonZeroUsize
fn rowspan(&self, styles: StyleChain<'_>) -> NonZeroUsize
Source§impl ShowSet for Packed<BibliographyElem>
impl ShowSet for Packed<BibliographyElem>
Source§fn show_set(&self, _: StyleChain<'_>) -> Styles
fn show_set(&self, _: StyleChain<'_>) -> Styles
Source§impl ShowSet for Packed<EquationElem>
impl ShowSet for Packed<EquationElem>
Source§fn show_set(&self, styles: StyleChain<'_>) -> Styles
fn show_set(&self, styles: StyleChain<'_>) -> Styles
Source§impl ShowSet for Packed<FigureElem>
impl ShowSet for Packed<FigureElem>
Source§fn show_set(&self, _: StyleChain<'_>) -> Styles
fn show_set(&self, _: StyleChain<'_>) -> Styles
Source§impl ShowSet for Packed<FootnoteEntry>
impl ShowSet for Packed<FootnoteEntry>
Source§fn show_set(&self, _: StyleChain<'_>) -> Styles
fn show_set(&self, _: StyleChain<'_>) -> Styles
Source§impl ShowSet for Packed<HeadingElem>
impl ShowSet for Packed<HeadingElem>
Source§fn show_set(&self, styles: StyleChain<'_>) -> Styles
fn show_set(&self, styles: StyleChain<'_>) -> Styles
Source§impl ShowSet for Packed<LinkElem>
impl ShowSet for Packed<LinkElem>
Source§fn show_set(&self, _: StyleChain<'_>) -> Styles
fn show_set(&self, _: StyleChain<'_>) -> Styles
Source§impl ShowSet for Packed<OutlineElem>
impl ShowSet for Packed<OutlineElem>
Source§fn show_set(&self, styles: StyleChain<'_>) -> Styles
fn show_set(&self, styles: StyleChain<'_>) -> Styles
Source§impl ShowSet for Packed<QuoteElem>
impl ShowSet for Packed<QuoteElem>
Source§fn show_set(&self, styles: StyleChain<'_>) -> Styles
fn show_set(&self, styles: StyleChain<'_>) -> Styles
Source§impl ShowSet for Packed<RawElem>
impl ShowSet for Packed<RawElem>
Source§fn show_set(&self, styles: StyleChain<'_>) -> Styles
fn show_set(&self, styles: StyleChain<'_>) -> Styles
Source§impl ShowSet for Packed<TitleElem>
impl ShowSet for Packed<TitleElem>
Source§fn show_set(&self, _styles: StyleChain<'_>) -> Styles
fn show_set(&self, _styles: StyleChain<'_>) -> Styles
Source§impl Synthesize for Packed<BibliographyElem>
impl Synthesize for Packed<BibliographyElem>
Source§fn synthesize(
&mut self,
_: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> SourceResult<()>
fn synthesize( &mut self, _: &mut Engine<'_>, styles: StyleChain<'_>, ) -> SourceResult<()>
Source§impl Synthesize for Packed<CiteElem>
impl Synthesize for Packed<CiteElem>
Source§fn synthesize(
&mut self,
_: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> SourceResult<()>
fn synthesize( &mut self, _: &mut Engine<'_>, styles: StyleChain<'_>, ) -> SourceResult<()>
Source§impl Synthesize for Packed<EquationElem>
impl Synthesize for Packed<EquationElem>
Source§fn synthesize(
&mut self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> SourceResult<()>
fn synthesize( &mut self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> SourceResult<()>
Source§impl Synthesize for Packed<FigureCaption>
impl Synthesize for Packed<FigureCaption>
Source§fn synthesize(
&mut self,
_: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> SourceResult<()>
fn synthesize( &mut self, _: &mut Engine<'_>, styles: StyleChain<'_>, ) -> SourceResult<()>
Source§impl Synthesize for Packed<FigureElem>
impl Synthesize for Packed<FigureElem>
Source§fn synthesize(
&mut self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> SourceResult<()>
fn synthesize( &mut self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> SourceResult<()>
Source§impl Synthesize for Packed<GridElem>
impl Synthesize for Packed<GridElem>
Source§fn synthesize(
&mut self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> SourceResult<()>
fn synthesize( &mut self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> SourceResult<()>
Source§impl Synthesize for Packed<HeadingElem>
impl Synthesize for Packed<HeadingElem>
Source§fn synthesize(
&mut self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> SourceResult<()>
fn synthesize( &mut self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> SourceResult<()>
Source§impl Synthesize for Packed<ImageElem>
impl Synthesize for Packed<ImageElem>
Source§fn synthesize(
&mut self,
_: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> SourceResult<()>
fn synthesize( &mut self, _: &mut Engine<'_>, styles: StyleChain<'_>, ) -> SourceResult<()>
Source§impl Synthesize for Packed<RawElem>
impl Synthesize for Packed<RawElem>
Source§fn synthesize(
&mut self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> SourceResult<()>
fn synthesize( &mut self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> SourceResult<()>
Source§impl Synthesize for Packed<RefElem>
impl Synthesize for Packed<RefElem>
Source§fn synthesize(
&mut self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> SourceResult<()>
fn synthesize( &mut self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> SourceResult<()>
Source§impl Synthesize for Packed<TableElem>
impl Synthesize for Packed<TableElem>
Source§fn synthesize(
&mut self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> SourceResult<()>
fn synthesize( &mut self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> SourceResult<()>
impl Figurable for Packed<ImageElem>
impl Figurable for Packed<RawElem>
impl Figurable for Packed<TableElem>
impl Locatable for Packed<AttachElem>
impl Locatable for Packed<BibliographyElem>
impl Locatable for Packed<CiteElem>
impl Locatable for Packed<CiteGroup>
impl Locatable for Packed<ContextElem>
impl Locatable for Packed<CounterDisplayElem>
impl Locatable for Packed<CounterUpdateElem>
impl Locatable for Packed<EmphElem>
impl Locatable for Packed<EnumElem>
impl Locatable for Packed<EquationElem>
impl Locatable for Packed<FigureCaption>
impl Locatable for Packed<FigureElem>
impl Locatable for Packed<FootnoteElem>
impl Locatable for Packed<FootnoteEntry>
impl Locatable for Packed<FootnoteMarker>
impl Locatable for Packed<HeadingElem>
impl Locatable for Packed<HighlightElem>
impl Locatable for Packed<ImageElem>
impl Locatable for Packed<LayoutElem>
impl Locatable for Packed<LinkElem>
impl Locatable for Packed<ListElem>
impl Locatable for Packed<MetadataElem>
impl Locatable for Packed<OutlineElem>
impl Locatable for Packed<OutlineEntry>
impl Locatable for Packed<OverlineElem>
impl Locatable for Packed<ParElem>
impl Locatable for Packed<ParLine>
impl Locatable for Packed<ParLineMarker>
impl Locatable for Packed<PlaceElem>
impl Locatable for Packed<PrefixInfo>
impl Locatable for Packed<QuoteElem>
impl Locatable for Packed<RawElem>
impl Locatable for Packed<RefElem>
impl Locatable for Packed<StateUpdateElem>
impl Locatable for Packed<StrikeElem>
impl Locatable for Packed<StrongElem>
impl Locatable for Packed<TableElem>
impl Locatable for Packed<TermsElem>
impl Locatable for Packed<TitleElem>
impl Locatable for Packed<UnderlineElem>
impl Mathy for Packed<AccentElem>
impl Mathy for Packed<AlignPointElem>
impl Mathy for Packed<AttachElem>
impl Mathy for Packed<BinomElem>
impl Mathy for Packed<CancelElem>
impl Mathy for Packed<CasesElem>
impl Mathy for Packed<ClassElem>
impl Mathy for Packed<FracElem>
impl Mathy for Packed<LimitsElem>
impl Mathy for Packed<LrElem>
impl Mathy for Packed<MatElem>
impl Mathy for Packed<MidElem>
impl Mathy for Packed<OpElem>
impl Mathy for Packed<OverbraceElem>
impl Mathy for Packed<OverbracketElem>
impl Mathy for Packed<OverlineElem>
impl Mathy for Packed<OverparenElem>
impl Mathy for Packed<OvershellElem>
impl Mathy for Packed<PrimesElem>
impl Mathy for Packed<RootElem>
impl Mathy for Packed<ScriptsElem>
impl Mathy for Packed<StretchElem>
impl Mathy for Packed<UnderbraceElem>
impl Mathy for Packed<UnderbracketElem>
impl Mathy for Packed<UnderlineElem>
impl Mathy for Packed<UnderparenElem>
impl Mathy for Packed<UndershellElem>
impl Mathy for Packed<VecElem>
impl Tagged for Packed<ArtifactElem>
impl Tagged for Packed<EmphElem>
impl Tagged for Packed<EnumElem>
impl Tagged for Packed<EnumItem>
impl Tagged for Packed<EquationElem>
impl Tagged for Packed<FigureCaption>
impl Tagged for Packed<FigureElem>
impl Tagged for Packed<FootnoteElem>
impl Tagged for Packed<FootnoteEntry>
impl Tagged for Packed<GridElem>
impl Tagged for Packed<HeadingElem>
impl Tagged for Packed<HideElem>
impl Tagged for Packed<HighlightElem>
impl Tagged for Packed<ImageElem>
impl Tagged for Packed<LinkMarker>
impl Tagged for Packed<ListElem>
impl Tagged for Packed<ListItem>
impl Tagged for Packed<OutlineElem>
impl Tagged for Packed<OutlineEntry>
impl Tagged for Packed<OverlineElem>
impl Tagged for Packed<ParElem>
impl Tagged for Packed<PdfMarkerTag>
impl Tagged for Packed<PlaceElem>
impl Tagged for Packed<QuoteElem>
impl Tagged for Packed<RawElem>
impl Tagged for Packed<RawLine>
impl Tagged for Packed<RefElem>
impl Tagged for Packed<RepeatElem>
impl Tagged for Packed<StrikeElem>
impl Tagged for Packed<StrongElem>
impl Tagged for Packed<SubElem>
impl Tagged for Packed<SuperElem>
impl Tagged for Packed<TableElem>
impl Tagged for Packed<TermItem>
impl Tagged for Packed<TermsElem>
impl Tagged for Packed<TitleElem>
impl Tagged for Packed<UnderlineElem>
impl Unlabellable for Packed<ParbreakElem>
impl Unlabellable for Packed<SpaceElem>
impl Unlabellable for Packed<TagElem>
impl Unqueriable for Packed<CounterDisplayElem>
impl Unqueriable for Packed<ParLineMarker>
impl Unqueriable for Packed<PlaceElem>
impl Unqueriable for Packed<PrefixInfo>
Auto Trait Implementations§
impl<T> Freeze for Packed<T>
impl<T> RefUnwindSafe for Packed<T>where
T: RefUnwindSafe,
impl<T> Send for Packed<T>
impl<T> Sync for Packed<T>
impl<T> Unpin for Packed<T>where
T: Unpin,
impl<T> UnwindSafe for Packed<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: Real + Zero + Arithmetics + Clone,
Swp: WhitePoint<T>,
Dwp: WhitePoint<T>,
D: AdaptFrom<S, Swp, Dwp, T>,
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: Real + Zero + Arithmetics + Clone,
Swp: WhitePoint<T>,
Dwp: WhitePoint<T>,
D: AdaptFrom<S, Swp, Dwp, T>,
Source§fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<T>,
fn adapt_into_using<M>(self, method: M) -> Dwhere
M: TransformMatrix<T>,
Source§fn adapt_into(self) -> D
fn adapt_into(self) -> D
Source§impl<T, C> ArraysFrom<C> for Twhere
C: IntoArrays<T>,
impl<T, C> ArraysFrom<C> for Twhere
C: IntoArrays<T>,
Source§fn arrays_from(colors: C) -> T
fn arrays_from(colors: C) -> T
Source§impl<T, C> ArraysInto<C> for Twhere
C: FromArrays<T>,
impl<T, C> ArraysInto<C> for Twhere
C: FromArrays<T>,
Source§fn arrays_into(self) -> C
fn arrays_into(self) -> C
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<WpParam, T, U> Cam16IntoUnclamped<WpParam, T> for Uwhere
T: FromCam16Unclamped<WpParam, U>,
impl<WpParam, T, U> Cam16IntoUnclamped<WpParam, T> for Uwhere
T: FromCam16Unclamped<WpParam, U>,
Source§type Scalar = <T as FromCam16Unclamped<WpParam, U>>::Scalar
type Scalar = <T as FromCam16Unclamped<WpParam, U>>::Scalar
parameters when converting.Source§fn cam16_into_unclamped(
self,
parameters: BakedParameters<WpParam, <U as Cam16IntoUnclamped<WpParam, T>>::Scalar>,
) -> T
fn cam16_into_unclamped( self, parameters: BakedParameters<WpParam, <U as Cam16IntoUnclamped<WpParam, T>>::Scalar>, ) -> T
self into C, using the provided parameters.Source§impl<T> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T, C> ComponentsFrom<C> for Twhere
C: IntoComponents<T>,
impl<T, C> ComponentsFrom<C> for Twhere
C: IntoComponents<T>,
Source§fn components_from(colors: C) -> T
fn components_from(colors: C) -> T
Source§impl<T> FromAngle<T> for T
impl<T> FromAngle<T> for T
Source§fn from_angle(angle: T) -> T
fn from_angle(angle: T) -> T
angle.Source§impl<T, U> FromStimulus<U> for Twhere
U: IntoStimulus<T>,
impl<T, U> FromStimulus<U> for Twhere
U: IntoStimulus<T>,
Source§fn from_stimulus(other: U) -> T
fn from_stimulus(other: U) -> T
other into Self, while performing the appropriate scaling,
rounding and clamping.Source§impl<T> FromValue<Spanned<Value>> for Twhere
T: FromValue,
impl<T> FromValue<Spanned<Value>> for Twhere
T: FromValue,
Source§fn from_value(value: Spanned<Value>) -> Result<T, HintedString>
fn from_value(value: Spanned<Value>) -> Result<T, HintedString>
Self.Source§impl<T, U> IntoAngle<U> for Twhere
U: FromAngle<T>,
impl<T, U> IntoAngle<U> for Twhere
U: FromAngle<T>,
Source§fn into_angle(self) -> U
fn into_angle(self) -> U
T.Source§impl<WpParam, T, U> IntoCam16Unclamped<WpParam, T> for Uwhere
T: Cam16FromUnclamped<WpParam, U>,
impl<WpParam, T, U> IntoCam16Unclamped<WpParam, T> for Uwhere
T: Cam16FromUnclamped<WpParam, U>,
Source§type Scalar = <T as Cam16FromUnclamped<WpParam, U>>::Scalar
type Scalar = <T as Cam16FromUnclamped<WpParam, U>>::Scalar
parameters when converting.Source§fn into_cam16_unclamped(
self,
parameters: BakedParameters<WpParam, <U as IntoCam16Unclamped<WpParam, T>>::Scalar>,
) -> T
fn into_cam16_unclamped( self, parameters: BakedParameters<WpParam, <U as IntoCam16Unclamped<WpParam, T>>::Scalar>, ) -> T
self into C, using the provided parameters.Source§impl<T, U> IntoColor<U> for Twhere
U: FromColor<T>,
impl<T, U> IntoColor<U> for Twhere
U: FromColor<T>,
Source§fn into_color(self) -> U
fn into_color(self) -> U
Source§impl<T, U> IntoColorUnclamped<U> for Twhere
U: FromColorUnclamped<T>,
impl<T, U> IntoColorUnclamped<U> for Twhere
U: FromColorUnclamped<T>,
Source§fn into_color_unclamped(self) -> U
fn into_color_unclamped(self) -> U
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 moreSource§impl<T> IntoResult for Twhere
T: IntoValue,
impl<T> IntoResult for Twhere
T: IntoValue,
Source§fn into_result(self, _: Span) -> Result<Value, EcoVec<SourceDiagnostic>>
fn into_result(self, _: Span) -> Result<Value, EcoVec<SourceDiagnostic>>
Source§impl<T> IntoStimulus<T> for T
impl<T> IntoStimulus<T> for T
Source§fn into_stimulus(self) -> T
fn into_stimulus(self) -> T
self into T, while performing the appropriate scaling,
rounding and clamping.Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Source§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Source§impl<T, C> TryComponentsInto<C> for Twhere
C: TryFromComponents<T>,
impl<T, C> TryComponentsInto<C> for Twhere
C: TryFromComponents<T>,
Source§type Error = <C as TryFromComponents<T>>::Error
type Error = <C as TryFromComponents<T>>::Error
try_into_colors fails to cast.Source§fn try_components_into(self) -> Result<C, <T as TryComponentsInto<C>>::Error>
fn try_components_into(self) -> Result<C, <T as TryComponentsInto<C>>::Error>
Source§impl<T, U> TryIntoColor<U> for Twhere
U: TryFromColor<T>,
impl<T, U> TryIntoColor<U> for Twhere
U: TryFromColor<T>,
Source§fn try_into_color(self) -> Result<U, OutOfBounds<U>>
fn try_into_color(self) -> Result<U, OutOfBounds<U>>
OutOfBounds error is returned which contains
the unclamped color. Read more