pub struct NodeStyle {
pub foreground: Option<DisplayColor>,
pub fill: Option<DisplayColor>,
pub border: Option<DisplayColor>,
}Expand description
Optional foreground, fill, and border colors for a displayed node.
Fields§
§foreground: Option<DisplayColor>Text color.
fill: Option<DisplayColor>Background or fill color.
border: Option<DisplayColor>Outline color.
Implementations§
Source§impl NodeStyle
impl NodeStyle
Sourcepub const fn with_foreground(self, color: DisplayColor) -> Self
pub const fn with_foreground(self, color: DisplayColor) -> Self
Sets the text color.
Sourcepub const fn with_fill(self, color: DisplayColor) -> Self
pub const fn with_fill(self, color: DisplayColor) -> Self
Sets the background or fill color.
Sourcepub const fn with_border(self, color: DisplayColor) -> Self
pub const fn with_border(self, color: DisplayColor) -> Self
Sets the outline color.
Trait Implementations§
impl Copy for NodeStyle
impl Eq for NodeStyle
impl StructuralPartialEq for NodeStyle
Auto Trait Implementations§
impl Freeze for NodeStyle
impl RefUnwindSafe for NodeStyle
impl Send for NodeStyle
impl Sync for NodeStyle
impl Unpin for NodeStyle
impl UnsafeUnpin for NodeStyle
impl UnwindSafe for NodeStyle
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