pub struct DashboardRow {
pub spans: Vec<DashboardSpan>,
pub align: Align,
}Expand description
One visual line: spans laid out left→right, with a line-level alignment.
Fields§
§spans: Vec<DashboardSpan>§align: AlignImplementations§
Source§impl DashboardRow
impl DashboardRow
Sourcepub fn line(text: impl Into<String>, role: DashboardRole) -> Self
pub fn line(text: impl Into<String>, role: DashboardRole) -> Self
A single-span line of one role, left-aligned.
Sourcepub fn centered(text: impl Into<String>, role: DashboardRole) -> Self
pub fn centered(text: impl Into<String>, role: DashboardRole) -> Self
A single-span line of one role, centred.
pub fn with_align(self, align: Align) -> Self
pub fn push(self, span: DashboardSpan) -> Self
Trait Implementations§
Source§impl Clone for DashboardRow
impl Clone for DashboardRow
Source§fn clone(&self) -> DashboardRow
fn clone(&self) -> DashboardRow
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for DashboardRow
impl Debug for DashboardRow
Source§impl Default for DashboardRow
impl Default for DashboardRow
Source§fn default() -> DashboardRow
fn default() -> DashboardRow
Returns the “default value” for a type. Read more
impl Eq for DashboardRow
Source§impl PartialEq for DashboardRow
impl PartialEq for DashboardRow
impl StructuralPartialEq for DashboardRow
Auto Trait Implementations§
impl Freeze for DashboardRow
impl RefUnwindSafe for DashboardRow
impl Send for DashboardRow
impl Sync for DashboardRow
impl Unpin for DashboardRow
impl UnsafeUnpin for DashboardRow
impl UnwindSafe for DashboardRow
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.