Trait SequenceDestination

Source
pub trait SequenceDestination: Sized {
    // Required method
    fn add_sequence(&mut self, seq: Sequence);

    // Provided method
    fn sequence(self, lhs: Symbol) -> SequenceRuleBuilder<Self> { ... }
}
Expand description

Trait for storing sequence rules in containers, with potential rewrites.

Required Methods§

Source

fn add_sequence(&mut self, seq: Sequence)

Inserts a sequence rule.

Provided Methods§

Source

fn sequence(self, lhs: Symbol) -> SequenceRuleBuilder<Self>

Starts building a sequence rule.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementations on Foreign Types§

Source§

impl<'a> SequenceDestination for &'a mut Vec<Sequence>

Source§

fn sequence(self, lhs: Symbol) -> SequenceRuleBuilder<Self>

Starts building a sequence rule.

Source§

fn add_sequence(&mut self, seq: Sequence)

Implementors§