Struct Packed
pub struct Packed<T>(/* private fields */)
where
T: NativeElement;Expand description
A packed element of a static type.
Implementations§
§impl<T> Packed<T>where
T: NativeElement,
impl<T> Packed<T>where
T: NativeElement,
pub fn from_ref(content: &Content) -> Option<&Packed<T>>
pub fn from_ref(content: &Content) -> Option<&Packed<T>>
Try to cast type-erased content into a statically known packed element.
pub fn from_mut(content: &mut Content) -> Option<&mut Packed<T>>
pub fn from_mut(content: &mut Content) -> Option<&mut Packed<T>>
Try to cast type-erased content into a statically known packed element.
pub fn from_owned(content: Content) -> Result<Packed<T>, Content>
pub fn from_owned(content: Content) -> Result<Packed<T>, Content>
Try to cast type-erased content into a statically known packed element.
pub fn unpack(self) -> T
pub fn unpack(self) -> T
Extract the raw underlying element.
pub fn span(&self) -> Span
pub fn span(&self) -> Span
The element’s span.
pub fn set_location(&mut self, location: Location)
pub fn set_location(&mut self, location: Location)
Sets the location of the element.
§impl Packed<InlineElem>
impl Packed<InlineElem>
pub fn layout(
&self,
engine: &mut Engine<'_>,
locator: Locator<'_>,
styles: StyleChain<'_>,
region: Axes<Abs>,
) -> Result<Vec<InlineItem>, EcoVec<SourceDiagnostic>>
pub fn layout( &self, engine: &mut Engine<'_>, locator: Locator<'_>, styles: StyleChain<'_>, region: Axes<Abs>, ) -> Result<Vec<InlineItem>, EcoVec<SourceDiagnostic>>
Layout the element.
§impl Packed<AttachElem>
impl Packed<AttachElem>
pub fn merge_base(&self) -> Option<Packed<AttachElem>>
pub fn merge_base(&self) -> Option<Packed<AttachElem>>
If an AttachElem’s base is also an AttachElem, merge attachments into the base AttachElem where possible.
§impl Packed<BibliographyElem>
impl Packed<BibliographyElem>
pub 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.
§impl Packed<CiteGroup>
impl Packed<CiteGroup>
pub fn realize( &self, engine: &mut Engine<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
§impl Packed<FootnoteElem>
impl Packed<FootnoteElem>
pub fn realize(
&self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<(Destination, Content), EcoVec<SourceDiagnostic>>
pub fn realize( &self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<(Destination, Content), EcoVec<SourceDiagnostic>>
Returns the linking location and the resolved numbers.
pub fn declaration_location(
&self,
engine: &Engine<'_>,
) -> Result<Location, EcoString>
pub fn declaration_location( &self, engine: &Engine<'_>, ) -> Result<Location, EcoString>
Returns the location of the definition of this footnote.
§impl Packed<FootnoteEntry>
impl Packed<FootnoteEntry>
pub fn realize(
&self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<(Content, Content), EcoVec<SourceDiagnostic>>
pub fn realize( &self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<(Content, Content), EcoVec<SourceDiagnostic>>
Returns the location which should be attached to the entry, the linking destination, the resolved numbers, and the body content.
§impl Packed<OutlineElem>
impl Packed<OutlineElem>
pub 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.
pub fn realize_flat(
&self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<Vec<Packed<OutlineEntry>>, EcoVec<SourceDiagnostic>>
pub fn realize_flat( &self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<Vec<Packed<OutlineEntry>>, EcoVec<SourceDiagnostic>>
Realizes the entries in a flat fashion.
pub fn realize_tree(
&self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<Vec<OutlineNode>, EcoVec<SourceDiagnostic>>
pub fn realize_tree( &self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<Vec<OutlineNode>, EcoVec<SourceDiagnostic>>
Realizes the entries in a tree fashion.
§impl Packed<RefElem>
impl Packed<RefElem>
pub fn realize(
&self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
pub fn realize( &self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Realize as a linked, textual reference.
§impl Packed<ImageElem>
impl Packed<ImageElem>
pub fn decode(
&self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<Image, EcoVec<SourceDiagnostic>>
pub fn decode( &self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<Image, EcoVec<SourceDiagnostic>>
Decodes the image.
Trait Implementations§
§impl<T> AsMut<T> for Packed<T>where
T: NativeElement,
impl<T> AsMut<T> for Packed<T>where
T: NativeElement,
§impl<T> AsRef<T> for Packed<T>where
T: NativeElement,
impl<T> AsRef<T> for Packed<T>where
T: NativeElement,
§impl<T> Clone for Packed<T>where
T: Clone + NativeElement,
impl<T> Clone for Packed<T>where
T: Clone + NativeElement,
§impl<T> Debug for Packed<T>where
T: NativeElement + Debug,
impl<T> Debug for Packed<T>where
T: NativeElement + Debug,
§impl<T> Deref for Packed<T>where
T: NativeElement,
impl<T> Deref for Packed<T>where
T: NativeElement,
§impl<T> DerefMut for Packed<T>where
T: NativeElement,
impl<T> DerefMut for Packed<T>where
T: NativeElement,
§impl<T> FromValue for Packed<T>where
T: NativeElement + FromValue,
impl<T> FromValue for Packed<T>where
T: NativeElement + FromValue,
§fn from_value(value: Value) -> Result<Packed<T>, HintedString>
fn from_value(value: Value) -> Result<Packed<T>, HintedString>
Self.§impl<T> Hash for Packed<T>where
T: NativeElement,
impl<T> Hash for Packed<T>where
T: NativeElement,
§impl<T> IntoValue for Packed<T>where
T: NativeElement + IntoValue,
impl<T> IntoValue for Packed<T>where
T: NativeElement + IntoValue,
§fn into_value(self) -> Value
fn into_value(self) -> Value
§impl LocalName for Packed<BibliographyElem>
impl LocalName for Packed<BibliographyElem>
§fn local_name(lang: Lang, region: Option<Region>) -> &'static str
fn local_name(lang: Lang, region: Option<Region>) -> &'static str
§fn local_name_in(styles: StyleChain<'_>) -> &'static strwhere
Self: Sized,
fn local_name_in(styles: StyleChain<'_>) -> &'static strwhere
Self: Sized,
§impl LocalName for Packed<EquationElem>
impl LocalName for Packed<EquationElem>
§fn local_name(lang: Lang, region: Option<Region>) -> &'static str
fn local_name(lang: Lang, region: Option<Region>) -> &'static str
§fn local_name_in(styles: StyleChain<'_>) -> &'static strwhere
Self: Sized,
fn local_name_in(styles: StyleChain<'_>) -> &'static strwhere
Self: Sized,
§impl LocalName for Packed<FootnoteElem>
impl LocalName for Packed<FootnoteElem>
§fn local_name(lang: Lang, region: Option<Region>) -> &'static str
fn local_name(lang: Lang, region: Option<Region>) -> &'static str
§fn local_name_in(styles: StyleChain<'_>) -> &'static strwhere
Self: Sized,
fn local_name_in(styles: StyleChain<'_>) -> &'static strwhere
Self: Sized,
§impl LocalName for Packed<HeadingElem>
impl LocalName for Packed<HeadingElem>
§fn local_name(lang: Lang, region: Option<Region>) -> &'static str
fn local_name(lang: Lang, region: Option<Region>) -> &'static str
§fn local_name_in(styles: StyleChain<'_>) -> &'static strwhere
Self: Sized,
fn local_name_in(styles: StyleChain<'_>) -> &'static strwhere
Self: Sized,
§impl LocalName for Packed<ImageElem>
impl LocalName for Packed<ImageElem>
§fn local_name(lang: Lang, region: Option<Region>) -> &'static str
fn local_name(lang: Lang, region: Option<Region>) -> &'static str
§fn local_name_in(styles: StyleChain<'_>) -> &'static strwhere
Self: Sized,
fn local_name_in(styles: StyleChain<'_>) -> &'static strwhere
Self: Sized,
§impl LocalName for Packed<OutlineElem>
impl LocalName for Packed<OutlineElem>
§fn local_name(lang: Lang, region: Option<Region>) -> &'static str
fn local_name(lang: Lang, region: Option<Region>) -> &'static str
§fn local_name_in(styles: StyleChain<'_>) -> &'static strwhere
Self: Sized,
fn local_name_in(styles: StyleChain<'_>) -> &'static strwhere
Self: Sized,
§impl LocalName for Packed<RawElem>
impl LocalName for Packed<RawElem>
§fn local_name(lang: Lang, region: Option<Region>) -> &'static str
fn local_name(lang: Lang, region: Option<Region>) -> &'static str
§fn local_name_in(styles: StyleChain<'_>) -> &'static strwhere
Self: Sized,
fn local_name_in(styles: StyleChain<'_>) -> &'static strwhere
Self: Sized,
§impl LocalName for Packed<TableElem>
impl LocalName for Packed<TableElem>
§fn local_name(lang: Lang, region: Option<Region>) -> &'static str
fn local_name(lang: Lang, region: Option<Region>) -> &'static str
§fn local_name_in(styles: StyleChain<'_>) -> &'static strwhere
Self: Sized,
fn local_name_in(styles: StyleChain<'_>) -> &'static strwhere
Self: Sized,
§impl Outlinable for Packed<EquationElem>
impl Outlinable for Packed<EquationElem>
§impl Outlinable for Packed<FigureElem>
impl Outlinable for Packed<FigureElem>
§impl Outlinable for Packed<HeadingElem>
impl Outlinable for Packed<HeadingElem>
§impl<T> PartialEq for Packed<T>where
T: NativeElement,
impl<T> PartialEq for Packed<T>where
T: NativeElement,
§impl PlainText for Packed<RawElem>
impl PlainText for Packed<RawElem>
§fn plain_text(&self, text: &mut EcoString)
fn plain_text(&self, text: &mut EcoString)
§impl PlainText for Packed<RawLine>
impl PlainText for Packed<RawLine>
§fn plain_text(&self, text: &mut EcoString)
fn plain_text(&self, text: &mut EcoString)
§impl PlainText for Packed<SmartQuoteElem>
impl PlainText for Packed<SmartQuoteElem>
§fn plain_text(&self, text: &mut EcoString)
fn plain_text(&self, text: &mut EcoString)
§impl PlainText for Packed<SpaceElem>
impl PlainText for Packed<SpaceElem>
§fn plain_text(&self, text: &mut EcoString)
fn plain_text(&self, text: &mut EcoString)
§impl PlainText for Packed<SymbolElem>
impl PlainText for Packed<SymbolElem>
§fn plain_text(&self, text: &mut EcoString)
fn plain_text(&self, text: &mut EcoString)
§impl PlainText for Packed<TextElem>
impl PlainText for Packed<TextElem>
§fn plain_text(&self, text: &mut EcoString)
fn plain_text(&self, text: &mut EcoString)
§impl<T> Reflect for Packed<T>where
T: NativeElement + Reflect,
impl<T> Reflect for Packed<T>where
T: NativeElement + Reflect,
§fn error(found: &Value) -> HintedString
fn error(found: &Value) -> HintedString
§impl ResolvableCell for Packed<GridCell>
impl ResolvableCell for Packed<GridCell>
§fn resolve_cell(
self,
x: usize,
y: usize,
fill: &Option<Paint>,
align: Smart<Alignment>,
inset: Sides<Option<Rel>>,
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>>, stroke: Sides<Option<Option<Arc<Stroke<Abs>>>>>, breakable: bool, styles: StyleChain<'_>, _: Smart<TableCellKind>, ) -> Cell
breakable field.
Returns a final Cell.§fn x(&self, styles: StyleChain<'_>) -> Smart<usize>
fn x(&self, styles: StyleChain<'_>) -> Smart<usize>
§fn y(&self, styles: StyleChain<'_>) -> Smart<usize>
fn y(&self, styles: StyleChain<'_>) -> Smart<usize>
§fn colspan(&self, styles: StyleChain<'_>) -> NonZero<usize>
fn colspan(&self, styles: StyleChain<'_>) -> NonZero<usize>
§fn rowspan(&self, styles: StyleChain<'_>) -> NonZero<usize>
fn rowspan(&self, styles: StyleChain<'_>) -> NonZero<usize>
§impl ResolvableCell for Packed<TableCell>
impl ResolvableCell for Packed<TableCell>
§fn resolve_cell(
self,
x: usize,
y: usize,
fill: &Option<Paint>,
align: Smart<Alignment>,
inset: Sides<Option<Rel>>,
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>>, stroke: Sides<Option<Option<Arc<Stroke<Abs>>>>>, breakable: bool, styles: StyleChain<'_>, kind: Smart<TableCellKind>, ) -> Cell
breakable field.
Returns a final Cell.§fn x(&self, styles: StyleChain<'_>) -> Smart<usize>
fn x(&self, styles: StyleChain<'_>) -> Smart<usize>
§fn y(&self, styles: StyleChain<'_>) -> Smart<usize>
fn y(&self, styles: StyleChain<'_>) -> Smart<usize>
§fn colspan(&self, styles: StyleChain<'_>) -> NonZero<usize>
fn colspan(&self, styles: StyleChain<'_>) -> NonZero<usize>
§fn rowspan(&self, styles: StyleChain<'_>) -> NonZero<usize>
fn rowspan(&self, styles: StyleChain<'_>) -> NonZero<usize>
§impl ShowSet for Packed<BibliographyElem>
impl ShowSet for Packed<BibliographyElem>
§fn show_set(&self, _: StyleChain<'_>) -> Styles
fn show_set(&self, _: StyleChain<'_>) -> Styles
§impl ShowSet for Packed<EquationElem>
impl ShowSet for Packed<EquationElem>
§fn show_set(&self, styles: StyleChain<'_>) -> Styles
fn show_set(&self, styles: StyleChain<'_>) -> Styles
§impl ShowSet for Packed<FigureElem>
impl ShowSet for Packed<FigureElem>
§fn show_set(&self, _: StyleChain<'_>) -> Styles
fn show_set(&self, _: StyleChain<'_>) -> Styles
§impl ShowSet for Packed<FootnoteEntry>
impl ShowSet for Packed<FootnoteEntry>
§fn show_set(&self, _: StyleChain<'_>) -> Styles
fn show_set(&self, _: StyleChain<'_>) -> Styles
§impl ShowSet for Packed<HeadingElem>
impl ShowSet for Packed<HeadingElem>
§fn show_set(&self, styles: StyleChain<'_>) -> Styles
fn show_set(&self, styles: StyleChain<'_>) -> Styles
§impl ShowSet for Packed<LinkElem>
impl ShowSet for Packed<LinkElem>
§fn show_set(&self, _: StyleChain<'_>) -> Styles
fn show_set(&self, _: StyleChain<'_>) -> Styles
§impl ShowSet for Packed<OutlineElem>
impl ShowSet for Packed<OutlineElem>
§fn show_set(&self, styles: StyleChain<'_>) -> Styles
fn show_set(&self, styles: StyleChain<'_>) -> Styles
§impl ShowSet for Packed<QuoteElem>
impl ShowSet for Packed<QuoteElem>
§fn show_set(&self, styles: StyleChain<'_>) -> Styles
fn show_set(&self, styles: StyleChain<'_>) -> Styles
§impl ShowSet for Packed<RawElem>
impl ShowSet for Packed<RawElem>
§fn show_set(&self, styles: StyleChain<'_>) -> Styles
fn show_set(&self, styles: StyleChain<'_>) -> Styles
§impl ShowSet for Packed<TitleElem>
impl ShowSet for Packed<TitleElem>
§fn show_set(&self, _styles: StyleChain<'_>) -> Styles
fn show_set(&self, _styles: StyleChain<'_>) -> Styles
§impl Synthesize for Packed<BibliographyElem>
impl Synthesize for Packed<BibliographyElem>
§fn synthesize(
&mut self,
_: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<(), EcoVec<SourceDiagnostic>>
fn synthesize( &mut self, _: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<(), EcoVec<SourceDiagnostic>>
§impl Synthesize for Packed<CiteElem>
impl Synthesize for Packed<CiteElem>
§fn synthesize(
&mut self,
_: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<(), EcoVec<SourceDiagnostic>>
fn synthesize( &mut self, _: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<(), EcoVec<SourceDiagnostic>>
§impl Synthesize for Packed<EquationElem>
impl Synthesize for Packed<EquationElem>
§fn synthesize(
&mut self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<(), EcoVec<SourceDiagnostic>>
fn synthesize( &mut self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<(), EcoVec<SourceDiagnostic>>
§impl Synthesize for Packed<FigureCaption>
impl Synthesize for Packed<FigureCaption>
§fn synthesize(
&mut self,
_: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<(), EcoVec<SourceDiagnostic>>
fn synthesize( &mut self, _: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<(), EcoVec<SourceDiagnostic>>
§impl Synthesize for Packed<FigureElem>
impl Synthesize for Packed<FigureElem>
§fn synthesize(
&mut self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<(), EcoVec<SourceDiagnostic>>
fn synthesize( &mut self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<(), EcoVec<SourceDiagnostic>>
§impl Synthesize for Packed<GridElem>
impl Synthesize for Packed<GridElem>
§fn synthesize(
&mut self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<(), EcoVec<SourceDiagnostic>>
fn synthesize( &mut self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<(), EcoVec<SourceDiagnostic>>
§impl Synthesize for Packed<HeadingElem>
impl Synthesize for Packed<HeadingElem>
§fn synthesize(
&mut self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<(), EcoVec<SourceDiagnostic>>
fn synthesize( &mut self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<(), EcoVec<SourceDiagnostic>>
§impl Synthesize for Packed<ImageElem>
impl Synthesize for Packed<ImageElem>
§fn synthesize(
&mut self,
_: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<(), EcoVec<SourceDiagnostic>>
fn synthesize( &mut self, _: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<(), EcoVec<SourceDiagnostic>>
§impl Synthesize for Packed<RawElem>
impl Synthesize for Packed<RawElem>
§fn synthesize(
&mut self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<(), EcoVec<SourceDiagnostic>>
fn synthesize( &mut self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<(), EcoVec<SourceDiagnostic>>
§impl Synthesize for Packed<RefElem>
impl Synthesize for Packed<RefElem>
§fn synthesize(
&mut self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<(), EcoVec<SourceDiagnostic>>
fn synthesize( &mut self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<(), EcoVec<SourceDiagnostic>>
§impl Synthesize for Packed<TableElem>
impl Synthesize for Packed<TableElem>
§fn synthesize(
&mut self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<(), EcoVec<SourceDiagnostic>>
fn synthesize( &mut self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<(), EcoVec<SourceDiagnostic>>
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
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
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
§impl<T> CallHasher for T
impl<T> CallHasher for 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
§impl<F, W, T, D> Deserialize<With<T, W>, D> for F
impl<F, W, T, D> Deserialize<With<T, W>, D> for F
§fn deserialize(
&self,
deserializer: &mut D,
) -> Result<With<T, W>, <D as Fallible>::Error>
fn deserialize( &self, deserializer: &mut D, ) -> Result<With<T, W>, <D as Fallible>::Error>
§impl<T> Filterable for T
impl<T> Filterable for 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.§impl<T> FromValue<Spanned<Value>> for Twhere
T: FromValue,
impl<T> FromValue<Spanned<Value>> for Twhere
T: FromValue,
§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 more§impl<T> IntoResult for Twhere
T: IntoValue,
impl<T> IntoResult for Twhere
T: IntoValue,
§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.§impl<T> LayoutRaw for T
impl<T> LayoutRaw for T
§fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
fn layout_raw(_: <T as Pointee>::Metadata) -> Result<Layout, LayoutError>
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)
§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