Struct preexplorer::Sequence [−][src]
Expand description
Most basic explorable structure: a sequence of values.
Remarks
With the prelude module, we can easily convert a IntoIterator struct into Sequence for ease of use. The same can be achieved with the new method.
Examples
Quick plot.
use preexplorer::prelude::*; (0..10).preexplore().plot("my_identifier").unwrap();
Compare Sequence structs.
use preexplorer::prelude::*; pre::Sequences::new(vec![ (0..10).preexplore(), (0..10).preexplore(), ]) .plot("my_identifier").unwrap();
Implementations
Constructs a new Sequence<T>
.
Examples
From a complicated computation.
use preexplorer::prelude::*; let data = (0..10).map(|i| i * i + 1); let seq = pre::Sequence::new(data);
Trait Implementations
Performs the +=
operation. Read more
Mutable access to Configuration
.
Reference access to Configuration
.
Set title, which in comparisons correspond to legends.
Set logaritmic scale in the x axis. Read more
Set logaritmic scale in the y axis. Read more
Set logaritmic scale in the x axis. Read more
Set logaritmic scale in the y axis. Read more
Set a label in the x axis.
Set a label in the y axis.
Set a label in the x axis. Read more
Set a label in the y axis. Read more
Set the range in the x axis. If left > right, then the x axis is inverted.
Set the range in the y axis. If down > up, then the y axis is inverted.
Set the range in the x axis. If left > right, then the x axis is inverted. Read more
Set the range in the y axis. If down > up, then the y axis is inverted. Read more
Set an extension for the data file. Read more
Set an extension for the data file. Read more
Decide the presence of headers in the data file. If activated, then title, date and other information are included as a comment in the data file. Read more
Choose the style for the plot. Too see all options, go to Style
struct.
If you set a style and then compare with other structs, then
in the joint plot, the style shall be mantained for those structs that had
a style not setted by default. Read more
Choose the dashtype for the plot. Following the gnuplot standar, it has a cyclic behaviour. Read more
Choose the date used when saving files. Read more
Set the unique id or file name with which both data and plot script will be saved. There is no default value and one must set it before plotting or saving. Read more
Include custom configuration fields into the Configuration
struct.
This is intended for all new configurations you want, specially if
you are implementing the traits. Read more
Control tics in the x axis. Passing ""
shows no tics.
See gnuplot documentation for a correct format. Read more
Control tics in the y axis. Passing ""
shows no tics.
See gnuplot documentation for a correct format. Read more
Control tics in the x axis. See gnuplot documentation for a correct format. Read more
Control tics in the y axis. See gnuplot documentation for a correct format. Read more
Control the time for which the plot is in the screen. The unit is seconds.
Any negative number means “until a key is pressed”. To have no pause, pass
0
, instead of None
. Read more
Construct a suitable plot script for the struct.
Do everything except running the command of plotting. In other words: Read more
Main command. In other words: Read more
fn plot_with_script<S: Display, T: Display>(
&mut self,
id: S,
script: T
) -> Result<&mut Self, PreexplorerError>
fn plot_with_script<S: Display, T: Display>(
&mut self,
id: S,
script: T
) -> Result<&mut Self, PreexplorerError>
Plot with a custom script. In other words: Read more
Write plot script given by plot_script
in the machine for posterior running. Read more
Helper method for implementing Plotable
.
Helper method for implementing Plotable
.
Auto Trait Implementations
impl<T> RefUnwindSafe for Sequence<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Sequence<T> where
T: UnwindSafe,
Blanket Implementations
type Err = NoError
type Err = NoError
The error type produced by a failed conversion.
pub fn approx_from(
src: Src
) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
pub fn approx_from(
src: Src
) -> Result<Src, <Src as ApproxFrom<Src, Scheme>>::Err>
Convert the given value into an approximately equivalent representation.
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
type Err = <Dst as ApproxFrom<Src, Scheme>>::Err
The error type produced by a failed conversion.
pub fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
pub fn approx_into(self) -> Result<Dst, <Src as ApproxInto<Dst, Scheme>>::Err>
Convert the subject into an approximately equivalent representation.
Mutably borrows from an owned value. Read more
Approximate the subject to a given type with the default scheme.
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
fn approx_as_by<Dst, Scheme>(self) -> Result<Dst, Self::Err> where
Self: ApproxInto<Dst, Scheme>,
Scheme: ApproxScheme,
Approximate the subject to a given type with a specific scheme.
Attempt to convert the subject to a given type.
type Err = NoError
type Err = NoError
The error type produced by a failed conversion.
pub fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>
pub fn value_from(src: Src) -> Result<Src, <Src as ValueFrom<Src>>::Err>
Convert the given value into an exactly equivalent representation.
type Err = <Dst as ValueFrom<Src>>::Err
type Err = <Dst as ValueFrom<Src>>::Err
The error type produced by a failed conversion.
pub fn value_into(self) -> Result<Dst, <Src as ValueInto<Dst>>::Err>
pub fn value_into(self) -> Result<Dst, <Src as ValueInto<Dst>>::Err>
Convert the subject into an exactly equivalent representation.