pub struct Formatted {
pub text: String,
pub color: Option<FormatColor>,
pub fill: Option<(char, usize)>,
pub numeric: bool,
}Expand description
A formatted value ready to paint.
Fields§
§text: String§color: Option<FormatColor>§fill: Option<(char, usize)>Repeat-fill char from *x and its byte position in text, for the renderer to expand to
the cell width.
numeric: boolTrue when the result should be right-aligned by default (numbers); General text is left aligned.
Trait Implementations§
impl Eq for Formatted
impl StructuralPartialEq for Formatted
Auto Trait Implementations§
impl Freeze for Formatted
impl RefUnwindSafe for Formatted
impl Send for Formatted
impl Sync for Formatted
impl Unpin for Formatted
impl UnsafeUnpin for Formatted
impl UnwindSafe for Formatted
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
Checks if this value is equivalent to the given key. Read more
§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.