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<FootnoteElem>
impl Packed<FootnoteElem>
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.
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>
Try to cast the value into an instance of
Self
.§impl<T> Hash for Packed<T>where
T: Hash + NativeElement,
impl<T> Hash for Packed<T>where
T: Hash + 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
Cast this type into a 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
Get the name in the given language and (optionally) region.
§fn local_name_in(styles: StyleChain<'_>) -> &'static strwhere
Self: Sized,
fn local_name_in(styles: StyleChain<'_>) -> &'static strwhere
Self: Sized,
Gets the local name from the style chain.
§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
Get the name in the given language and (optionally) region.
§fn local_name_in(styles: StyleChain<'_>) -> &'static strwhere
Self: Sized,
fn local_name_in(styles: StyleChain<'_>) -> &'static strwhere
Self: Sized,
Gets the local name from the style chain.
§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
Get the name in the given language and (optionally) region.
§fn local_name_in(styles: StyleChain<'_>) -> &'static strwhere
Self: Sized,
fn local_name_in(styles: StyleChain<'_>) -> &'static strwhere
Self: Sized,
Gets the local name from the style chain.
§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
Get the name in the given language and (optionally) region.
§fn local_name_in(styles: StyleChain<'_>) -> &'static strwhere
Self: Sized,
fn local_name_in(styles: StyleChain<'_>) -> &'static strwhere
Self: Sized,
Gets the local name from the style chain.
§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
Get the name in the given language and (optionally) region.
§fn local_name_in(styles: StyleChain<'_>) -> &'static strwhere
Self: Sized,
fn local_name_in(styles: StyleChain<'_>) -> &'static strwhere
Self: Sized,
Gets the local name from the style chain.
§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
Get the name in the given language and (optionally) region.
§fn local_name_in(styles: StyleChain<'_>) -> &'static strwhere
Self: Sized,
fn local_name_in(styles: StyleChain<'_>) -> &'static strwhere
Self: Sized,
Gets the local name from the style chain.
§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
Get the name in the given language and (optionally) region.
§fn local_name_in(styles: StyleChain<'_>) -> &'static strwhere
Self: Sized,
fn local_name_in(styles: StyleChain<'_>) -> &'static strwhere
Self: Sized,
Gets the local name from the style chain.
§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: PartialEq + NativeElement,
impl<T> PartialEq for Packed<T>where
T: PartialEq + 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)
Write this element’s plain text into the given buffer.
§impl PlainText for Packed<RawLine>
impl PlainText for Packed<RawLine>
§fn plain_text(&self, text: &mut EcoString)
fn plain_text(&self, text: &mut EcoString)
Write this element’s plain text into the given buffer.
§impl PlainText for Packed<SmartQuoteElem>
impl PlainText for Packed<SmartQuoteElem>
§fn plain_text(&self, text: &mut EcoString)
fn plain_text(&self, text: &mut EcoString)
Write this element’s plain text into the given buffer.
§impl PlainText for Packed<SpaceElem>
impl PlainText for Packed<SpaceElem>
§fn plain_text(&self, text: &mut EcoString)
fn plain_text(&self, text: &mut EcoString)
Write this element’s plain text into the given buffer.
§impl PlainText for Packed<SymbolElem>
impl PlainText for Packed<SymbolElem>
§fn plain_text(&self, text: &mut EcoString)
fn plain_text(&self, text: &mut EcoString)
Write this element’s plain text into the given buffer.
§impl PlainText for Packed<TextElem>
impl PlainText for Packed<TextElem>
§fn plain_text(&self, text: &mut EcoString)
fn plain_text(&self, text: &mut EcoString)
Write this element’s plain text into the given buffer.
§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
Produce an error message for an unacceptable value type. Read more
§impl ResolvableCell for Packed<GridCell>
impl ResolvableCell for Packed<GridCell>
§fn resolve_cell<'a>(
self,
x: usize,
y: usize,
fill: &Option<Paint>,
align: Smart<Alignment>,
inset: Sides<Option<Rel>>,
stroke: Sides<Option<Option<Arc<Stroke<Abs>>>>>,
breakable: bool,
locator: Locator<'a>,
styles: StyleChain<'_>,
) -> Cell<'a>
fn resolve_cell<'a>( self, x: usize, y: usize, fill: &Option<Paint>, align: Smart<Alignment>, inset: Sides<Option<Rel>>, stroke: Sides<Option<Option<Arc<Stroke<Abs>>>>>, breakable: bool, locator: Locator<'a>, styles: StyleChain<'_>, ) -> Cell<'a>
Resolves the cell’s fields, given its coordinates and default grid-wide
fill, align, inset and stroke properties, plus the expected value of
the
breakable
field.
Returns a final Cell.§fn x(&self, styles: StyleChain<'_>) -> Smart<usize>
fn x(&self, styles: StyleChain<'_>) -> Smart<usize>
Returns this cell’s column override.
§fn y(&self, styles: StyleChain<'_>) -> Smart<usize>
fn y(&self, styles: StyleChain<'_>) -> Smart<usize>
Returns this cell’s row override.
§fn colspan(&self, styles: StyleChain<'_>) -> NonZero<usize>
fn colspan(&self, styles: StyleChain<'_>) -> NonZero<usize>
The amount of columns spanned by this cell.
§fn rowspan(&self, styles: StyleChain<'_>) -> NonZero<usize>
fn rowspan(&self, styles: StyleChain<'_>) -> NonZero<usize>
The amount of rows spanned by this cell.
§impl ResolvableCell for Packed<TableCell>
impl ResolvableCell for Packed<TableCell>
§fn resolve_cell<'a>(
self,
x: usize,
y: usize,
fill: &Option<Paint>,
align: Smart<Alignment>,
inset: Sides<Option<Rel>>,
stroke: Sides<Option<Option<Arc<Stroke<Abs>>>>>,
breakable: bool,
locator: Locator<'a>,
styles: StyleChain<'_>,
) -> Cell<'a>
fn resolve_cell<'a>( self, x: usize, y: usize, fill: &Option<Paint>, align: Smart<Alignment>, inset: Sides<Option<Rel>>, stroke: Sides<Option<Option<Arc<Stroke<Abs>>>>>, breakable: bool, locator: Locator<'a>, styles: StyleChain<'_>, ) -> Cell<'a>
Resolves the cell’s fields, given its coordinates and default grid-wide
fill, align, inset and stroke properties, plus the expected value of
the
breakable
field.
Returns a final Cell.§fn x(&self, styles: StyleChain<'_>) -> Smart<usize>
fn x(&self, styles: StyleChain<'_>) -> Smart<usize>
Returns this cell’s column override.
§fn y(&self, styles: StyleChain<'_>) -> Smart<usize>
fn y(&self, styles: StyleChain<'_>) -> Smart<usize>
Returns this cell’s row override.
§fn colspan(&self, styles: StyleChain<'_>) -> NonZero<usize>
fn colspan(&self, styles: StyleChain<'_>) -> NonZero<usize>
The amount of columns spanned by this cell.
§fn rowspan(&self, styles: StyleChain<'_>) -> NonZero<usize>
fn rowspan(&self, styles: StyleChain<'_>) -> NonZero<usize>
The amount of rows spanned by this cell.
§impl Show for Packed<AlignElem>
impl Show for Packed<AlignElem>
§fn show(
&self,
_: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, _: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<BibliographyElem>
impl Show for Packed<BibliographyElem>
§fn show(
&self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<CircleElem>
impl Show for Packed<CircleElem>
§fn show(
&self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<CiteGroup>
impl Show for Packed<CiteGroup>
§fn show(
&self,
engine: &mut Engine<'_>,
_: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, engine: &mut Engine<'_>, _: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<ColumnsElem>
impl Show for Packed<ColumnsElem>
§fn show(
&self,
engine: &mut Engine<'_>,
_: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, engine: &mut Engine<'_>, _: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<ContextElem>
impl Show for Packed<ContextElem>
§fn show(
&self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<CounterDisplayElem>
impl Show for Packed<CounterDisplayElem>
§fn show(
&self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<CounterUpdateElem>
impl Show for Packed<CounterUpdateElem>
§fn show(
&self,
_: &mut Engine<'_>,
_: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, _: &mut Engine<'_>, _: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<CurveElem>
impl Show for Packed<CurveElem>
§fn show(
&self,
engine: &mut Engine<'_>,
_: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, engine: &mut Engine<'_>, _: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<EllipseElem>
impl Show for Packed<EllipseElem>
§fn show(
&self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<EmbedElem>
impl Show for Packed<EmbedElem>
§fn show(
&self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<EmphElem>
impl Show for Packed<EmphElem>
§fn show(
&self,
_: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, _: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<EnumElem>
impl Show for Packed<EnumElem>
§fn show(
&self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<EquationElem>
impl Show for Packed<EquationElem>
§fn show(
&self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<FigureCaption>
impl Show for Packed<FigureCaption>
§fn show(
&self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<FigureElem>
impl Show for Packed<FigureElem>
§fn show(
&self,
_: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, _: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<FootnoteElem>
impl Show for Packed<FootnoteElem>
§fn show(
&self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<FootnoteEntry>
impl Show for Packed<FootnoteEntry>
§fn show(
&self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<GridCell>
impl Show for Packed<GridCell>
§fn show(
&self,
_engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, _engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<GridElem>
impl Show for Packed<GridElem>
§fn show(
&self,
engine: &mut Engine<'_>,
_: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, engine: &mut Engine<'_>, _: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<HeadingElem>
impl Show for Packed<HeadingElem>
§fn show(
&self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<HideElem>
impl Show for Packed<HideElem>
§fn show(
&self,
_: &mut Engine<'_>,
_: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, _: &mut Engine<'_>, _: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<HighlightElem>
impl Show for Packed<HighlightElem>
§fn show(
&self,
_: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, _: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<ImageElem>
impl Show for Packed<ImageElem>
§fn show(
&self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<LayoutElem>
impl Show for Packed<LayoutElem>
§fn show(
&self,
_: &mut Engine<'_>,
_: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, _: &mut Engine<'_>, _: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<LineElem>
impl Show for Packed<LineElem>
§fn show(
&self,
engine: &mut Engine<'_>,
_: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, engine: &mut Engine<'_>, _: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<LinkElem>
impl Show for Packed<LinkElem>
§fn show(
&self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<ListElem>
impl Show for Packed<ListElem>
§fn show(
&self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<MetadataElem>
impl Show for Packed<MetadataElem>
§fn show(
&self,
_: &mut Engine<'_>,
_styles: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, _: &mut Engine<'_>, _styles: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<MoveElem>
impl Show for Packed<MoveElem>
§fn show(
&self,
engine: &mut Engine<'_>,
_: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, engine: &mut Engine<'_>, _: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<OutlineElem>
impl Show for Packed<OutlineElem>
§fn show(
&self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<OutlineEntry>
impl Show for Packed<OutlineEntry>
§fn show(
&self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<OverlineElem>
impl Show for Packed<OverlineElem>
§fn show(
&self,
_: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, _: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<PadElem>
impl Show for Packed<PadElem>
§fn show(
&self,
engine: &mut Engine<'_>,
_: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, engine: &mut Engine<'_>, _: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<PathElem>
impl Show for Packed<PathElem>
§fn show(
&self,
engine: &mut Engine<'_>,
_: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, engine: &mut Engine<'_>, _: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<PolygonElem>
impl Show for Packed<PolygonElem>
§fn show(
&self,
engine: &mut Engine<'_>,
_: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, engine: &mut Engine<'_>, _: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<PrefixInfo>
impl Show for Packed<PrefixInfo>
§fn show(
&self,
_: &mut Engine<'_>,
_: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, _: &mut Engine<'_>, _: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<QuoteElem>
impl Show for Packed<QuoteElem>
§fn show(
&self,
_: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, _: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<RawElem>
impl Show for Packed<RawElem>
§fn show(
&self,
_: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, _: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<RawLine>
impl Show for Packed<RawLine>
§fn show(
&self,
_: &mut Engine<'_>,
_styles: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, _: &mut Engine<'_>, _styles: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<RectElem>
impl Show for Packed<RectElem>
§fn show(
&self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<RefElem>
impl Show for Packed<RefElem>
§fn show(
&self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<RepeatElem>
impl Show for Packed<RepeatElem>
§fn show(
&self,
engine: &mut Engine<'_>,
_: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, engine: &mut Engine<'_>, _: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<RotateElem>
impl Show for Packed<RotateElem>
§fn show(
&self,
engine: &mut Engine<'_>,
_: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, engine: &mut Engine<'_>, _: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<ScaleElem>
impl Show for Packed<ScaleElem>
§fn show(
&self,
engine: &mut Engine<'_>,
_: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, engine: &mut Engine<'_>, _: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<SkewElem>
impl Show for Packed<SkewElem>
§fn show(
&self,
engine: &mut Engine<'_>,
_: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, engine: &mut Engine<'_>, _: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<SmallcapsElem>
impl Show for Packed<SmallcapsElem>
§fn show(
&self,
_: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, _: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<SquareElem>
impl Show for Packed<SquareElem>
§fn show(
&self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<StackElem>
impl Show for Packed<StackElem>
§fn show(
&self,
engine: &mut Engine<'_>,
_: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, engine: &mut Engine<'_>, _: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<StateUpdateElem>
impl Show for Packed<StateUpdateElem>
§fn show(
&self,
_: &mut Engine<'_>,
_: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, _: &mut Engine<'_>, _: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<StrikeElem>
impl Show for Packed<StrikeElem>
§fn show(
&self,
_: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, _: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<StrongElem>
impl Show for Packed<StrongElem>
§fn show(
&self,
_: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, _: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<SubElem>
impl Show for Packed<SubElem>
§fn show(
&self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<SuperElem>
impl Show for Packed<SuperElem>
§fn show(
&self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<TableCell>
impl Show for Packed<TableCell>
§fn show(
&self,
_engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, _engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<TableElem>
impl Show for Packed<TableElem>
§fn show(
&self,
engine: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, engine: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<TermsElem>
impl Show for Packed<TermsElem>
§fn show(
&self,
_: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, _: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl Show for Packed<UnderlineElem>
impl Show for Packed<UnderlineElem>
§fn show(
&self,
_: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<Content, EcoVec<SourceDiagnostic>>
fn show( &self, _: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<Content, EcoVec<SourceDiagnostic>>
Execute the base recipe for this element.
§impl ShowSet for Packed<BibliographyElem>
impl ShowSet for Packed<BibliographyElem>
§fn show_set(&self, _: StyleChain<'_>) -> Styles
fn show_set(&self, _: StyleChain<'_>) -> Styles
Finalize the fully realized form of the element. Use this for effects
that should work even in the face of a user-defined show rule.
§impl ShowSet for Packed<EquationElem>
impl ShowSet for Packed<EquationElem>
§fn show_set(&self, styles: StyleChain<'_>) -> Styles
fn show_set(&self, styles: StyleChain<'_>) -> Styles
Finalize the fully realized form of the element. Use this for effects
that should work even in the face of a user-defined show rule.
§impl ShowSet for Packed<FigureElem>
impl ShowSet for Packed<FigureElem>
§fn show_set(&self, _: StyleChain<'_>) -> Styles
fn show_set(&self, _: StyleChain<'_>) -> Styles
Finalize the fully realized form of the element. Use this for effects
that should work even in the face of a user-defined show rule.
§impl ShowSet for Packed<FootnoteEntry>
impl ShowSet for Packed<FootnoteEntry>
§fn show_set(&self, _: StyleChain<'_>) -> Styles
fn show_set(&self, _: StyleChain<'_>) -> Styles
Finalize the fully realized form of the element. Use this for effects
that should work even in the face of a user-defined show rule.
§impl ShowSet for Packed<HeadingElem>
impl ShowSet for Packed<HeadingElem>
§fn show_set(&self, styles: StyleChain<'_>) -> Styles
fn show_set(&self, styles: StyleChain<'_>) -> Styles
Finalize the fully realized form of the element. Use this for effects
that should work even in the face of a user-defined show rule.
§impl ShowSet for Packed<LinkElem>
impl ShowSet for Packed<LinkElem>
§fn show_set(&self, _: StyleChain<'_>) -> Styles
fn show_set(&self, _: StyleChain<'_>) -> Styles
Finalize the fully realized form of the element. Use this for effects
that should work even in the face of a user-defined show rule.
§impl ShowSet for Packed<OutlineElem>
impl ShowSet for Packed<OutlineElem>
§fn show_set(&self, styles: StyleChain<'_>) -> Styles
fn show_set(&self, styles: StyleChain<'_>) -> Styles
Finalize the fully realized form of the element. Use this for effects
that should work even in the face of a user-defined show rule.
§impl ShowSet for Packed<QuoteElem>
impl ShowSet for Packed<QuoteElem>
§fn show_set(&self, styles: StyleChain<'_>) -> Styles
fn show_set(&self, styles: StyleChain<'_>) -> Styles
Finalize the fully realized form of the element. Use this for effects
that should work even in the face of a user-defined show rule.
§impl ShowSet for Packed<RawElem>
impl ShowSet for Packed<RawElem>
§fn show_set(&self, styles: StyleChain<'_>) -> Styles
fn show_set(&self, styles: StyleChain<'_>) -> Styles
Finalize the fully realized form of the element. Use this for effects
that should work even in the face of a user-defined show rule.
§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>>
Prepare the element for show rule application.
§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>>
Prepare the element for show rule application.
§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>>
Prepare the element for show rule application.
§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>>
Prepare the element for show rule application.
§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>>
Prepare the element for show rule application.
§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>>
Prepare the element for show rule application.
§impl Synthesize for Packed<RawElem>
impl Synthesize for Packed<RawElem>
§fn synthesize(
&mut self,
_: &mut Engine<'_>,
styles: StyleChain<'_>,
) -> Result<(), EcoVec<SourceDiagnostic>>
fn synthesize( &mut self, _: &mut Engine<'_>, styles: StyleChain<'_>, ) -> Result<(), EcoVec<SourceDiagnostic>>
Prepare the element for show rule application.
§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>>
Prepare the element for show rule application.
impl Figurable for Packed<ImageElem>
impl Figurable for Packed<RawElem>
impl Figurable for Packed<TableElem>
impl Locatable for Packed<BibliographyElem>
impl Locatable for Packed<CiteGroup>
impl Locatable for Packed<ContextElem>
impl Locatable for Packed<CounterDisplayElem>
impl Locatable for Packed<CounterUpdateElem>
impl Locatable for Packed<EmbedElem>
impl Locatable for Packed<EquationElem>
impl Locatable for Packed<FigureElem>
impl Locatable for Packed<FootnoteElem>
impl Locatable for Packed<HeadingElem>
impl Locatable for Packed<LayoutElem>
impl Locatable for Packed<MetadataElem>
impl Locatable for Packed<OutlineElem>
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<RefElem>
impl Locatable for Packed<StateUpdateElem>
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<T> StructuralPartialEq for Packed<T>where
T: NativeElement,
impl Unlabellable for Packed<ParbreakElem>
impl Unlabellable for Packed<SpaceElem>
impl Unlabellable for Packed<TagElem>
impl Unqueriable for Packed<PlaceElem>
PlaceElem
must be locatable to support logical ordering of floats, but I
do not want to expose query(place)
for now.
Auto Trait Implementations§
impl<T> Freeze for Packed<T>
impl<T> !RefUnwindSafe for Packed<T>
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>
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>,
Convert the source color to the destination color using the specified
method.
Source§fn adapt_into(self) -> D
fn adapt_into(self) -> D
Convert the source color to the destination color using the bradford
method by default.
§impl<T> ArchivePointee for T
impl<T> ArchivePointee for T
§type ArchivedMetadata = ()
type ArchivedMetadata = ()
The archived version of the pointer metadata for this type.
§fn pointer_metadata(
_: &<T as ArchivePointee>::ArchivedMetadata,
) -> <T as Pointee>::Metadata
fn pointer_metadata( _: &<T as ArchivePointee>::ArchivedMetadata, ) -> <T as Pointee>::Metadata
Converts some archived metadata to the pointer metadata for itself.
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
Cast a collection of colors into a collection of arrays.
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
Cast this collection of arrays into a collection of colors.
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
§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
The number type that’s used in
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
Converts
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>,
Casts the value.
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>
Casts the value.
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
Cast a collection of colors into a collection of color components.
§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>
Deserializes using the given deserializer
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§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
Performs a conversion from
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
Converts
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>
Try to cast the value into an instance of
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
Performs a conversion into
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
The number type that’s used in
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
Converts
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
Convert into T with values clamped to the color defined bounds Read more
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
Convert into T. The resulting color might be invalid in its color space Read more
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 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>>
Cast this type into a value.
Source§impl<T> IntoStimulus<T> for T
impl<T> IntoStimulus<T> for T
Source§fn into_stimulus(self) -> T
fn into_stimulus(self) -> T
Converts
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>
Gets the layout of the type.
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>,
Casts the value.
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)
Casts the value.
§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>,
Casts the value.
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
Casts the value.
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
The error for when
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>
Try to cast this collection of color components into a collection of
colors. Read more
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>>
Convert into T, returning ok if the color is inside of its defined
range, otherwise an
OutOfBounds
error is returned which contains
the unclamped color. Read moreSource§impl<C, U> UintsFrom<C> for Uwhere
C: IntoUints<U>,
impl<C, U> UintsFrom<C> for Uwhere
C: IntoUints<U>,
Source§fn uints_from(colors: C) -> U
fn uints_from(colors: C) -> U
Cast a collection of colors into a collection of unsigned integers.
Source§impl<C, U> UintsInto<C> for Uwhere
C: FromUints<U>,
impl<C, U> UintsInto<C> for Uwhere
C: FromUints<U>,
Source§fn uints_into(self) -> C
fn uints_into(self) -> C
Cast this collection of unsigned integers into a collection of colors.
Source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.