Struct imgui::PlotLines

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

Implementations§

source§

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

source

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

source§

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

source

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

source

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

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: impl Into<Vector2<f32>>) -> Self

source

pub fn build(self)

Auto Trait Implementations§

§

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

§

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

§

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

§

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

§

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

§

impl<'ui, 'p, Label, Overlay = &'static str> !UnwindSafe for PlotLines<'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.