Trait window::BuildFromWindowSettings[][src]

pub trait BuildFromWindowSettings: Sized {
    fn build_from_window_settings(
        settings: &WindowSettings
    ) -> Result<Self, Box<dyn Error>>; }

Constructs a window from a WindowSettings object.

It is used by WindowSettings::build. Note that the backend’s implementation of this may differ from its implementation of ::new().

Required methods

fn build_from_window_settings(
    settings: &WindowSettings
) -> Result<Self, Box<dyn Error>>
[src]

Builds the window from a WindowSettings object.

Errors

See your backend’s documentation for details about what kind of error strings can be returned, and the conditions for error.

Loading content...

Implementors

impl BuildFromWindowSettings for NoWindow[src]

fn build_from_window_settings(
    settings: &WindowSettings
) -> Result<Self, Box<dyn Error>>
[src]

Errors

This function will always return without error.

Loading content...