pub struct Style { /* private fields */ }
Implementations§
Source§impl Style
impl Style
pub fn empty() -> Style
pub fn new() -> Style
pub fn from_stylesheet(input: &str) -> Style
pub fn from_color_spec(spec: ColorSpec) -> Style
pub fn debug_attributes(&self) -> Vec<(AttributeName, Option<String>)>
pub fn union(self, other: Style) -> Style
pub fn to_color_spec(&self) -> ColorSpec
pub fn has_value(&self) -> bool
pub fn is_default(&self) -> bool
pub fn fg(&self, color: impl Into<Color>) -> Style
pub fn bg(&self, color: impl Into<Color>) -> Style
pub fn weight(&self, weight: WeightAttribute) -> Style
pub fn bold(&self) -> Style
pub fn dim(&self) -> Style
pub fn normal(&self) -> Style
pub fn underline(&self) -> Style
pub fn nounderline(&self) -> Style
Trait Implementations§
impl StructuralPartialEq for Style
Auto Trait Implementations§
impl Freeze for Style
impl RefUnwindSafe for Style
impl Send for Style
impl Sync for Style
impl Unpin for Style
impl UnwindSafe for Style
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,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)