pub struct Values { /* private fields */ }
Implementations
sourceimpl Values
impl Values
pub fn from_values(values: Vec<Value>) -> Self
pub fn from_values_iter(iter: impl Iterator<Item = Value>) -> Self
sourcepub fn from_explicit_callback(
function: impl Fn(f64) -> f64 + 'static,
x_range: impl RangeBounds<f64>,
points: usize
) -> Self
pub fn from_explicit_callback(
function: impl Fn(f64) -> f64 + 'static,
x_range: impl RangeBounds<f64>,
points: usize
) -> Self
Draw a line based on a function y=f(x)
, a range (which can be infinite) for x and the number of points.
sourcepub fn from_parametric_callback(
function: impl Fn(f64) -> (f64, f64),
t_range: impl RangeBounds<f64>,
points: usize
) -> Self
pub fn from_parametric_callback(
function: impl Fn(f64) -> (f64, f64),
t_range: impl RangeBounds<f64>,
points: usize
) -> Self
Draw a line based on a function (x,y)=f(t)
, a range for t and the number of points.
The range may be specified as start..end or as start..=end.
sourcepub fn from_ys_f32(ys: &[f32]) -> Self
pub fn from_ys_f32(ys: &[f32]) -> Self
From a series of y-values. The x-values will be the indices of these values
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for Values
impl !Send for Values
impl !Sync for Values
impl Unpin for Values
impl !UnwindSafe for Values
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more