Struct tweak::Case[][src]

pub struct Case<C, E> { /* fields omitted */ }

Case holds group of when/then clauses

Methods

impl<C: 'static, E: 'static> Case<C, E>
[src]

Create a new case group

Examples

use tweak::Case;

let case = Case::<String, ()>::new("string manipulation");

Describe an action to run if its then block returns false.

Describe a group of then/when clauses to run if its then block returns false.

Run all described statements.

Auto Trait Implementations

impl<C, E> !Send for Case<C, E>

impl<C, E> !Sync for Case<C, E>