pub struct NodeTable {
pub header: Vec<String>,
pub rows: Vec<Vec<String>>,
pub marked: Vec<Option<usize>>,
pub current: Option<usize>,
pub keys: Vec<String>,
}Expand description
A small table in a node’s box, under its label (an influence diagram’s
policy: a row per configuration of the decision’s informational parents,
a column per option with its expected utility, the chosen option
marked). The first column holds the row names, left-aligned; the others
are right-aligned. Size the box with table_box.
Fields§
§header: Vec<String>The column heads (the first one names the rows and may be empty); all empty: no header row.
rows: Vec<Vec<String>>The rows: the name, then a cell per further column.
marked: Vec<Option<usize>>Per row, the column (1 or more) of its marked cell, e.g. the chosen option: bold, on a tint of the table’s colour.
current: Option<usize>A row to highlight with a band, e.g. the configuration the evidence picks.
keys: Vec<String>Per column, the data-state its head and cells carry (empty: none),
e.g. the option a click on the column names.
Trait Implementations§
impl StructuralPartialEq for NodeTable
Auto Trait Implementations§
impl Forget for NodeTable
impl Freeze for NodeTablewhere
*const u8 is !null: Freeze,
PhantomData<String>: Freeze,
PhantomData<Vec<String>>: Freeze,
PhantomData<Option<usize>>: Freeze,
impl Move for NodeTable
impl RefUnwindSafe for NodeTable
impl Send for NodeTablewhere
RawVecInner: Send,
impl Sync for NodeTablewhere
RawVecInner: Sync,
impl Unpin for NodeTable
impl UnsafeUnpin for NodeTablewhere
*const u8 is !null: UnsafeUnpin,
PhantomData<String>: UnsafeUnpin,
PhantomData<Vec<String>>: UnsafeUnpin,
PhantomData<Option<usize>>: UnsafeUnpin,
impl UnwindSafe for NodeTablewhere
RawVecInner: UnwindSafe,
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