Enum Prominence Copy item path Source #[non_exhaustive]
pub enum Prominence {
Lead,
Support,
Quiet,
}Expand description How much a part of a row stands out: the row’s default column set.
A part’s content is already a node that says what it is (a badge, a
control, a meter), so the part carries only the one thing the node cannot:
how far forward it stands in the row. That sets two defaults, the colour it
reads in and what it is worth when the run does not fit. A part may say
otherwise about its worth, and a renderer reads the part rather than this.
Three steps, and two parts at one step share a column.
This enum is marked as non-exhaustive Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
The thing itself: what the row is called. A row that activates is
activated through its lead.
What supports the lead: a second line, the row’s badges.
A short trailing fact: a count, a size, a date, a proportion.
What the part is worth when the run does not fit, unless it says.
The lead is Priority::Essential : without it the row does not
identify itself. An unknown member reads as Priority::Secondary :
droppable, but not first.
The content intent text at this step takes.
A part whose node carries its own colour (a badge’s tone, a control, a
meter) keeps that colour; this is for the words.
Performs copy-assignment from
source.
Read more Formats the value using the given formatter.
Read more Compares and returns the maximum of two values.
Read more Compares and returns the minimum of two values.
Read more Restrict a value to a certain interval.
Read more 🔬 This is a nightly-only experimental API. (clamp_to)
Restrict a value to a certain range.
Read more This method returns an ordering between
self and
other values if one exists.
Read more Tests less than (for
self and
other) and is used by the
< operator.
Read more Tests less than or equal to (for
self and
other) and is used by the
<= operator.
Read more Tests greater than (for
self and
other) and is used by the
>
operator.
Read more Tests greater than or equal to (for
self and
other) and is used by
the
>= operator.
Read more Immutably borrows from an owned value.
Read more Mutably borrows from an owned value.
Read more 🔬 This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from
self to
dest.
Read more Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From <T> for U chooses to do.
The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning.
Read more Uses borrowed data to replace owned data, usually by cloning.
Read more The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.