pub struct SemanticStyle<T = Rgba> {
pub foreground: T,
pub background: Option<T>,
pub emphasized: bool,
}Fields§
§foreground: T§background: Option<T>§emphasized: boolImplementations§
Source§impl<T> SemanticStyle<T>
impl<T> SemanticStyle<T>
pub fn map<U>(self, f: impl FnMut(T) -> U) -> SemanticStyle<U>
Trait Implementations§
Source§impl<T: Clone> Clone for SemanticStyle<T>
impl<T: Clone> Clone for SemanticStyle<T>
impl<T: Copy> Copy for SemanticStyle<T>
Source§impl<T: Debug> Debug for SemanticStyle<T>
impl<T: Debug> Debug for SemanticStyle<T>
impl<T: Eq> Eq for SemanticStyle<T>
Source§impl<T: PartialEq> PartialEq for SemanticStyle<T>
impl<T: PartialEq> PartialEq for SemanticStyle<T>
impl<T: PartialEq> StructuralPartialEq for SemanticStyle<T>
Auto Trait Implementations§
impl<T> Forget for SemanticStyle<T>
impl<T> Freeze for SemanticStyle<T>
impl<T> Move for SemanticStyle<T>
impl<T> RefUnwindSafe for SemanticStyle<T>
impl<T> Send for SemanticStyle<T>
impl<T> Sync for SemanticStyle<T>
impl<T> Unpin for SemanticStyle<T>
impl<T> UnsafeUnpin for SemanticStyle<T>
impl<T> UnwindSafe for SemanticStyle<T>
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