Skip to main content

ContourColorBar

Struct ContourColorBar 

Source
pub struct ContourColorBar<'a> { /* private fields */ }
Expand description

Continuous scalar-level key drawn in chart layout space.

Implementations§

Source§

impl<'a> ContourColorBar<'a>

Source

pub fn new<F>( minimum: f64, maximum: f64, map: F, ) -> Result<Self, ContourDisplayError>
where F: Fn(f64) -> RGBAColor + 'a,

Source

pub fn orientation(self, value: ContourColorBarOrientation) -> Self

Source

pub fn position(self, value: ContourColorBarPosition) -> Self

Source

pub fn size(self, length: u32, thickness: u32) -> Self

Source

pub fn margin(self, value: i32) -> Self

Source

pub fn tick_values(self, value: Vec<f64>) -> Self

Source

pub fn formatter<F, S>(self, value: F) -> Self
where F: Fn(f64) -> S + 'a, S: Into<String>,

Source

pub fn title<S: Into<String>>(self, value: S) -> Self

Source

pub fn text_style(self, value: AxisTextStyle) -> Self

Source

pub fn border_style<S: Into<ShapeStyle>>(self, value: S) -> Self

Auto Trait Implementations§

§

impl<'a> !RefUnwindSafe for ContourColorBar<'a>

§

impl<'a> !Send for ContourColorBar<'a>

§

impl<'a> !Sync for ContourColorBar<'a>

§

impl<'a> !UnwindSafe for ContourColorBar<'a>

§

impl<'a> Freeze for ContourColorBar<'a>

§

impl<'a> Unpin for ContourColorBar<'a>

§

impl<'a> UnsafeUnpin for ContourColorBar<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.