#[non_exhaustive]pub struct SankeyFlow {
pub source: usize,
pub target: usize,
pub value: f64,
pub from: Point,
pub to: Point,
pub width: f32,
}Expand description
A flow as it landed: a ribbon from the side of a node to the side of another.
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.source: usizeWhere it comes from.
target: usizeWhere it goes.
value: f64How much.
from: PointWhere it starts: on this side, at this height, its middle.
to: PointWhere it ends.
width: f32How thick it is.
Implementations§
Trait Implementations§
Source§impl Clone for SankeyFlow
impl Clone for SankeyFlow
Source§fn clone(&self) -> SankeyFlow
fn clone(&self) -> SankeyFlow
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 moreimpl Copy for SankeyFlow
Source§impl Debug for SankeyFlow
impl Debug for SankeyFlow
Source§impl PartialEq for SankeyFlow
impl PartialEq for SankeyFlow
impl StructuralPartialEq for SankeyFlow
Auto Trait Implementations§
impl Freeze for SankeyFlow
impl RefUnwindSafe for SankeyFlow
impl Send for SankeyFlow
impl Sync for SankeyFlow
impl Unpin for SankeyFlow
impl UnsafeUnpin for SankeyFlow
impl UnwindSafe for SankeyFlow
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