Selection

Trait Selection 

Source
pub trait Selection {
    type SubStmts;

    // Provided methods
    fn keywords() -> Vec<Keyword>  { ... }
    fn new() -> Self
       where Self: Sized { ... }
    fn new_with_substmts(_substmts: Self::SubStmts) -> Self
       where Self: Sized { ... }
}

Required Associated Types§

Source

type SubStmts

Sub Statements.

Provided Methods§

Source

fn keywords() -> Vec<Keyword>

Return list fo statement keyword.

Source

fn new() -> Self
where Self: Sized,

Constructor with empty substatements.

Source

fn new_with_substmts(_substmts: Self::SubStmts) -> Self
where Self: Sized,

Constructor with tuple of substatements. Panic if it is not defined.

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.

Implementors§