FerroUI/ docs

Search guides, controls, Rust APIs, and XAML.

    GitHub ↗

    SankeyChartEngine

    struct · ferroui-livecharts · v0.5.0

    struct SankeyChartEngine
    

    View source

    Members

    measure

    fn measure(size: Size, series: &[SankeySeries], options: &SankeyOptions) -> Result<Scene, ChartError>
    

    Source

    measure_with_labels

    fn measure_with_labels(size: Size, series: &[SankeySeries], options: &SankeyOptions, measure_text: impl FnMut(&str, f64) -> Size) -> Result<Scene, ChartError>
    

    Native hosts supply their text metrics here, so that the room reserved for the labels fits the typeface that draws them. Every series takes the whole draw margin, as in the source.

    Source

    Trait implementations

    • Send
    • Sync
    • Freeze
    • UnsafeUnpin
    • Unpin
    • UnwindSafe
    • RefUnwindSafe
    • Borrow<T>
    • BorrowMut<T>
    • Into<U>
    • From<T>
    • TryInto<U>
    • TryFrom<U>
    • Any
    • ClassDefaults
    • ErasedDestructor
    • IntoEither

    Availability

    Extracted for aarch64-apple-darwin. Cargo features are listed in the crate index.