pub struct NodeStyle {
pub fill: Option<Rgb>,
pub stroke: Option<Rgb>,
pub color: Option<Rgb>,
}Expand description
Per-node style attributes parsed from style <id> ... directives.
Only color-related attributes are tracked. Unrecognised keys
(e.g. font-size) are silently ignored at parse time.
Fields§
§fill: Option<Rgb>Background color for the node interior cells (fill:#…).
stroke: Option<Rgb>Foreground color for the node border glyphs (stroke:#…).
color: Option<Rgb>Foreground color for the node label text (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