pub struct NodeView<'a, I> {
pub id: &'a I,
pub status: NodeStatus,
pub rank: Option<usize>,
pub dependencies: Vec<&'a I>,
pub optional_dependencies: Vec<&'a I>,
}Expand description
Everything a tree view draws for one node. Unlocks::view returns one
per node.
Fields§
§id: &'a IThe node.
status: NodeStatusWhere the node stands.
rank: Option<usize>The layout column, or None when the node has no rank. See
Unlocks::ranks.
dependencies: Vec<&'a I>The nodes that must come first. Draw these as solid edges. See
Unlocks::dependencies.
optional_dependencies: Vec<&'a I>The nodes that could help instead. Draw these as dashed edges. See
Unlocks::optional_dependencies.
Trait Implementations§
impl<'a, I: Eq> Eq for NodeView<'a, I>
impl<'a, I: PartialEq> StructuralPartialEq for NodeView<'a, I>
Auto Trait Implementations§
impl<'a, I> Freeze for NodeView<'a, I>
impl<'a, I> RefUnwindSafe for NodeView<'a, I>
impl<'a, I> Send for NodeView<'a, I>
impl<'a, I> Sync for NodeView<'a, I>
impl<'a, I> Unpin for NodeView<'a, I>
impl<'a, I> UnsafeUnpin for NodeView<'a, I>
impl<'a, I> UnwindSafe for NodeView<'a, I>
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