pub enum NodeShape {
Box,
Circle,
FilledCircle,
Square,
FilledSquare,
Text,
Glyph,
}Expand description
A node’s mark. A factor graph (Forney style) draws factors as boxes, variables as circles (filled when observed), equality nodes as small squares, deterministic (delta) nodes as small filled squares, and constants as plain text.
Variants§
Box
A box with a label, value, badge and sparkline (node_box).
Circle
FilledCircle
Square
A small square, its label above it.
FilledSquare
A small filled square, its label above it.
Text
The label alone.
Glyph
A small square box with a short glyph centred in it (a factor drawn
as 𝒩, Γ, Ber, …): uniform, so a factor graph stays compact.
Trait Implementations§
impl Copy for NodeShape
impl Eq for NodeShape
impl StructuralPartialEq for NodeShape
Auto Trait Implementations§
impl Forget for NodeShape
impl Freeze for NodeShape
impl Move for NodeShape
impl RefUnwindSafe for NodeShape
impl Send for NodeShape
impl Sync for NodeShape
impl Unpin for NodeShape
impl UnsafeUnpin for NodeShape
impl UnwindSafe for NodeShape
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§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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> ⓘ
Converts
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> ⓘ
Converts
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