pub struct GraphStyle {
pub card: (u8, u8, u8),
pub band: (u8, u8, u8),
pub muted: (u8, u8, u8),
pub heading: (u8, u8, u8),
pub ink: (u8, u8, u8),
pub variable_fill: (u8, u8, u8),
pub observed_fill: (u8, u8, u8),
pub plate: (u8, u8, u8),
pub class_prefix: String,
pub math_font: Option<String>,
pub glyph_fill: Option<(u8, u8, u8)>,
pub glyph_ink: Option<(u8, u8, u8)>,
}Expand description
The colours and class names of a drawing.
Fields§
§card: (u8, u8, u8)Box and badge fill, and the halo behind edge labels.
band: (u8, u8, u8)Swimlane band tint.
muted: (u8, u8, u8)Lane names and edge labels.
heading: (u8, u8, u8)Node labels.
ink: (u8, u8, u8)Node values and badge text.
variable_fill: (u8, u8, u8)A variable’s circle (NodeShape::Circle).
observed_fill: (u8, u8, u8)An observed variable’s circle (NodeShape::FilledCircle) and a
delta node’s square; their labels are drawn in card.
plate: (u8, u8, u8)A plate’s dashed outline and its label.
class_prefix: StringPrefix of the layer classes (<prefix>node, <prefix>edge,
<prefix>edge-label, <prefix>lane, <prefix>lane-label,
<prefix>node-label, <prefix>node-value, <prefix>node-badge,
<prefix>node-spark, <prefix>plate, <prefix>plate-label; a
shaped node’s mark also has <prefix>node-<shape>).
math_font: Option<String>A factor graph’s math font: when set, the labels of shaped nodes
(variables, observations, equality nodes, glyph factors) are set in
this family, italic and regular weight — θ, x₁, 𝒩 read as
mathematics. None keeps the bold sans labels.
glyph_fill: Option<(u8, u8, u8)>A glyph factor’s fill (NodeShape::Glyph); None is card.
glyph_ink: Option<(u8, u8, u8)>A glyph factor’s glyph colour; None is heading.
Trait Implementations§
Source§impl Clone for GraphStyle
impl Clone for GraphStyle
Source§impl Debug for GraphStyle
impl Debug for GraphStyle
Auto Trait Implementations§
impl Forget for GraphStyle
impl Freeze for GraphStyle
impl Move for GraphStyle
impl RefUnwindSafe for GraphStyle
impl Send for GraphStyle
impl Sync for GraphStyle
impl Unpin for GraphStyle
impl UnsafeUnpin for GraphStyle
impl UnwindSafe for GraphStyle
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more