Struct sea_canal::Pattern [] [src]

pub struct Pattern(_);

A sequence of operations defining a pattern.

Methods

impl Pattern
[src]

Constructs a new pattern given a vector of operations.

Constructs a new empty pattern.

Appends each of the items in iter to the pattern separately, returning a vector of patterns.

let pat = pat![Plus(3), Mult(2)];
let pats = pat.extend_each(vec![Div(2), Div(3)].into_iter());
assert_eq!(pats, vec![pat![Plus(3), Mult(2), Div(2)], pat![Plus(3), Mult(2), Div(3)]]);

Trait Implementations

impl Clone for Pattern
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Pattern
[src]

Formats the value using the given formatter.

impl Hash for Pattern
[src]

Feeds this value into the given [Hasher]. Read more

Feeds a slice of this type into the given [Hasher]. Read more

impl PartialEq for Pattern
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Eq for Pattern
[src]

impl PartialOrd for Pattern
[src]

This method returns an ordering between self and other values if one exists. Read more

This method tests less than (for self and other) and is used by the < operator. Read more

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

This method tests greater than (for self and other) and is used by the > operator. Read more

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Ord for Pattern
[src]

This method returns an Ordering between self and other. Read more

impl IntoIterator for Pattern
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

impl FromIterator<PatternElem> for Pattern
[src]

Creates a value from an iterator. Read more

impl Display for Pattern
[src]

Formats the value using the given formatter. Read more