pub struct PlotHistogram<'ui, 'p, Label, Overlay = &'static str> { /* private fields */ }

Implementations§

source§

impl<'ui, 'p, Label: AsRef<str>> PlotHistogram<'ui, 'p, Label>

source

pub fn new(ui: &'ui Ui<'ui>, label: Label, values: &'p [f32]) -> Self

source§

impl<'ui, 'p, Label: AsRef<str>, Overlay: AsRef<str>> PlotHistogram<'ui, 'p, Label, Overlay>

source

pub fn values_offset(self, values_offset: usize) -> Self

source

pub fn overlay_text<NewOverlay: AsRef<str>>( self, overlay_text: NewOverlay ) -> PlotHistogram<'ui, 'p, Label, NewOverlay>

source

pub fn scale_min(self, scale_min: f32) -> Self

source

pub fn scale_max(self, scale_max: f32) -> Self

source

pub fn graph_size(self, graph_size: [f32; 2]) -> Self

source

pub fn build(self)

Auto Trait Implementations§

§

impl<'ui, 'p, Label, Overlay> Freeze for PlotHistogram<'ui, 'p, Label, Overlay>
where Label: Freeze, Overlay: Freeze,

§

impl<'ui, 'p, Label, Overlay = &'static str> !RefUnwindSafe for PlotHistogram<'ui, 'p, Label, Overlay>

§

impl<'ui, 'p, Label, Overlay = &'static str> !Send for PlotHistogram<'ui, 'p, Label, Overlay>

§

impl<'ui, 'p, Label, Overlay = &'static str> !Sync for PlotHistogram<'ui, 'p, Label, Overlay>

§

impl<'ui, 'p, Label, Overlay> Unpin for PlotHistogram<'ui, 'p, Label, Overlay>
where Label: Unpin, Overlay: Unpin,

§

impl<'ui, 'p, Label, Overlay = &'static str> !UnwindSafe for PlotHistogram<'ui, 'p, Label, Overlay>

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>,

§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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

§

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.