pub struct StyledPart {
pub text: String,
pub fg: Option<Color>,
pub bg: Option<Color>,
pub styles: Vec<Attribute>,
pub fill_bg: bool,
}Fields§
§text: String§fg: Option<Color>§bg: Option<Color>§styles: Vec<Attribute>§fill_bg: boolImplementations§
Trait Implementations§
Source§impl Clone for StyledPart
impl Clone for StyledPart
Source§fn clone(&self) -> StyledPart
fn clone(&self) -> StyledPart
Returns a duplicate of the value. Read more
1.0.0 · Source§const fn clone_from(&mut self, source: &Self)
const fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StyledPart
impl RefUnwindSafe for StyledPart
impl Send for StyledPart
impl Sync for StyledPart
impl Unpin for StyledPart
impl UnwindSafe for StyledPart
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