pub struct MathGraph {
pub function: MathFunction,
pub time_range: (f32, f32),
pub columns: usize,
pub rows: usize,
pub graph_color: Vec4,
pub axis_color: Vec4,
pub bg_color: Vec4,
pub label: Option<String>,
}Expand description
Renders a MathFunction as a real-time scrolling oscilloscope graph.
Fields§
§function: MathFunction§time_range: (f32, f32)Time range to sample: (start_offset_behind_now, end_offset_ahead).
columns: usize§rows: usize§graph_color: Vec4§axis_color: Vec4§bg_color: Vec4§label: Option<String>Implementations§
Auto Trait Implementations§
impl Freeze for MathGraph
impl RefUnwindSafe for MathGraph
impl Send for MathGraph
impl Sync for MathGraph
impl Unpin for MathGraph
impl UnsafeUnpin for MathGraph
impl UnwindSafe for MathGraph
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
Source§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.Source§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.Source§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.Source§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.