#[non_exhaustive]pub struct SankeyLayout {
pub nodes: Vec<SankeyNode>,
pub flows: Vec<SankeyFlow>,
pub columns: usize,
}Expand description
A diagram laid out.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.nodes: Vec<SankeyNode>Every node, in the order given.
flows: Vec<SankeyFlow>Every flow with a value, in the order given.
columns: usizeHow many columns there are.
Implementations§
Trait Implementations§
Source§impl Clone for SankeyLayout
impl Clone for SankeyLayout
Source§fn clone(&self) -> SankeyLayout
fn clone(&self) -> SankeyLayout
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SankeyLayout
impl Debug for SankeyLayout
Source§impl Default for SankeyLayout
impl Default for SankeyLayout
Source§fn default() -> SankeyLayout
fn default() -> SankeyLayout
Returns the “default value” for a type. Read more
Source§impl PartialEq for SankeyLayout
impl PartialEq for SankeyLayout
impl StructuralPartialEq for SankeyLayout
Auto Trait Implementations§
impl Freeze for SankeyLayout
impl RefUnwindSafe for SankeyLayout
impl Send for SankeyLayout
impl Sync for SankeyLayout
impl Unpin for SankeyLayout
impl UnsafeUnpin for SankeyLayout
impl UnwindSafe for SankeyLayout
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