[][src]Struct sylasteven::Change

pub struct Change<S, E> { /* fields omitted */ }

The action, that will be done after handling an event by a layer.

Methods

impl<S, E> Change<S, E>[src]

pub fn none() -> Change<S, E>[src]

A simple change doing nothing.

pub fn pass() -> Change<S, E>[src]

A change passing the event to the next layer.

pub fn add(add: Vec<Box<dyn Layer<S, E> + 'static>>) -> Change<S, E>[src]

A change just adding new layers.

pub fn remove() -> Change<S, E>[src]

A simple change removing the current layer.

pub fn replace(add: Vec<Box<dyn Layer<S, E> + 'static>>) -> Change<S, E>[src]

A change replacing the current layer with new layers.

pub fn close() -> Change<S, E>[src]

A change removing all layers.

pub fn clear(add: Vec<Box<dyn Layer<S, E> + 'static>>) -> Change<S, E>[src]

A change replacing all layers with a new stack of layers.

Auto Trait Implementations

impl<S, E> !Send for Change<S, E>

impl<S, E> !Sync for Change<S, E>

impl<S, E> Unpin for Change<S, E>

impl<S, E> !UnwindSafe for Change<S, E>

impl<S, E> !RefUnwindSafe for Change<S, E>

Blanket Implementations

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

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

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.

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

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

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