Struct piston_window::NoWindow[]

pub struct NoWindow { /* fields omitted */ }

A window without user interface, often used in server event loops.

This structure holds just enough state to return values that were set. The size can be changed because the event loop does not emit Render events when the width or height is zero.

Implementations

impl NoWindow

pub fn new(settings: &WindowSettings) -> NoWindow

Creates a new NoWindow.

Trait Implementations

impl AdvancedWindow for NoWindow

impl BuildFromWindowSettings for NoWindow

pub fn build_from_window_settings(
    settings: &WindowSettings
) -> Result<NoWindow, Box<dyn Error + 'static, Global>>

Errors

This function will always return without error.

impl Window for NoWindow

Auto Trait Implementations

Blanket Implementations

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

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, 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.