[][src]Struct pixel_widgets::sandbox::Sandbox

pub struct Sandbox<M: 'static + Model, L: 'static + Loader> {
    pub ui: Ui<M, EventLoopProxy<Command<M::Message>>, L>,
    // some fields omitted
}

Sandbox for quick prototyping of pixel widgets applications

Fields

ui: Ui<M, EventLoopProxy<Command<M::Message>>, L>

The Ui being used in the sandbox

Implementations

impl<T: 'static + Model, L: 'static + Loader> Sandbox<T, L>[src]

pub async fn new(model: T, loader: L, builder: WindowBuilder) -> Self[src]

Construct a new Sandbox

pub async fn run(self)[src]

Run the application

Auto Trait Implementations

impl<M, L> !RefUnwindSafe for Sandbox<M, L>[src]

impl<M, L> !Send for Sandbox<M, L>[src]

impl<M, L> !Sync for Sandbox<M, L>[src]

impl<M, L> Unpin for Sandbox<M, L>[src]

impl<M, L> !UnwindSafe for Sandbox<M, L>[src]

Blanket Implementations

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

impl<T> Any for T where
    T: Any

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

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

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

impl<T> Instrument for T[src]

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

impl<T> Pointable for T

type Init = T

The type for initializers.

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.