Skip to main content

Plot3DItemFlagged

Trait Plot3DItemFlagged 

Source
pub trait Plot3DItemFlagged: Sized {
    type Output;

    // Required method
    fn map_item_flags<F>(self, f: F) -> Self::Output
       where F: FnOnce(&mut Item3DFlags);

    // Provided method
    fn with_item_flags(self, flags: Item3DFlags) -> Self::Output { ... }
}
Expand description

Shared ImPlot3D item-flag builder methods for plot builders backed by ImPlot3DSpec.

Required Associated Types§

Source

type Output

The output type returned by item-flag building methods.

Required Methods§

Source

fn map_item_flags<F>(self, f: F) -> Self::Output
where F: FnOnce(&mut Item3DFlags),

Provided Methods§

Source

fn with_item_flags(self, flags: Item3DFlags) -> Self::Output

Set common item flags such as NO_LEGEND / NO_FIT.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§