pub struct Sankey { /* private fields */ }
Implementations§
Source§impl Sankey
impl Sankey
pub fn new() -> Self
pub fn id<S: Into<String>>(self, id: S) -> Self
pub fn name<S: Into<String>>(self, name: S) -> Self
pub fn z_level<F: Into<i64>>(self, z_level: F) -> Self
pub fn z<F: Into<i64>>(self, z: F) -> Self
pub fn left<C: Into<CompositeValue>>(self, left: C) -> Self
pub fn top<C: Into<CompositeValue>>(self, top: C) -> Self
pub fn right<C: Into<CompositeValue>>(self, right: C) -> Self
pub fn bottom<C: Into<CompositeValue>>(self, bottom: C) -> Self
pub fn width<F: Into<i64>>(self, width: F) -> Self
pub fn height<F: Into<i64>>(self, height: F) -> Self
pub fn emphasis<E: Into<Emphasis>>(self, emphasis: E) -> Self
pub fn layout_iterations<F: Into<u64>>(self, layout_iterations: F) -> Self
pub fn orient<O: Into<Orient>>(self, orient: O) -> Self
pub fn label<L: Into<Label>>(self, label: L) -> Self
pub fn node_align<S: Into<SankeyNodeAlign>>(self, node_align: S) -> Self
pub fn line_style<L: Into<LineStyle>>(self, line_style: L) -> Self
pub fn data<S: Into<SankeyNode>>(self, data: Vec<S>) -> Self
pub fn nodes<S: Into<SankeyNode>>(self, nodes: Vec<S>) -> Self
pub fn links<S: Into<SankeyLink>>(self, links: Vec<S>) -> Self
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Sankey
impl RefUnwindSafe for Sankey
impl Send for Sankey
impl Sync for Sankey
impl Unpin for Sankey
impl UnwindSafe for Sankey
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> 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