[][src]Struct preexplorer::sequence::Sequence

pub struct Sequence<T> where
    T: Display + Clone
{ /* fields omitted */ }

Sequence of values.

Methods

impl<T> Sequence<T> where
    T: Display + Clone
[src]

pub fn new<I>(data: I) -> Sequence<T> where
    I: IntoIterator<Item = T>, 
[src]

Create a new Sequence.

Examples

From a complicated computation.

use preexplorer::prelude::*;
let data = (0..10).map(|i| i * i + 1);
let seq = pre::Sequence::new(data);

pub fn to_comparison(&self) -> Sequences<T>[src]

Convert to Sequences quickly.

pub fn compare_with<J>(self, others: J) -> Sequences<T> where
    J: IntoIterator<Item = Sequence<T>>, 
[src]

Compare your Sequence with various Sequences.

Remarks

Titles of Sequences involved in a Sequences are presented as legends.

Examples

Compare many Sequences by gathering all first (in some IntoIterator).

use preexplorer::prelude::*;
let first_seq = (0..10).preexplore().title("legend").to_owned();
let many_seqs = (0..5).map(|_| (0..10).preexplore());
let mut sequences = first_seq.compare_with(many_seqs);
sequences.title("Main title");

Trait Implementations

impl<T: Clone> Clone for Sequence<T> where
    T: Display + Clone
[src]

impl<T> Comparison<Sequence<T>> for Sequences<T> where
    T: Display + Clone
[src]

impl<T> Configurable for Sequence<T> where
    T: Display + Clone
[src]

impl<T: Debug> Debug for Sequence<T> where
    T: Display + Clone
[src]

impl<T> From<Sequence<T>> for Sequences<T> where
    T: Display + Clone
[src]

impl<T: PartialEq> PartialEq<Sequence<T>> for Sequence<T> where
    T: Display + Clone
[src]

impl<T> Plotable for Sequence<T> where
    T: Display + Clone
[src]

impl<T> Saveable for Sequence<T> where
    T: Display + Clone
[src]

impl<T> StructuralPartialEq for Sequence<T> where
    T: Display + Clone
[src]

Auto Trait Implementations

impl<T> RefUnwindSafe for Sequence<T> where
    T: RefUnwindSafe

impl<T> Send for Sequence<T> where
    T: Send

impl<T> Sync for Sequence<T> where
    T: Sync

impl<T> Unpin for Sequence<T> where
    T: Unpin

impl<T> UnwindSafe for Sequence<T> where
    T: UnwindSafe

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.