Trait piston::BuildFromWindowSettings [−][src]
pub trait BuildFromWindowSettings { pub fn build_from_window_settings(
settings: &WindowSettings
) -> Result<Self, Box<dyn Error + 'static, Global>>; }
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
pub fn build_from_window_settings(
settings: &WindowSettings
) -> Result<Self, Box<dyn Error + 'static, Global>>
[src]
settings: &WindowSettings
) -> Result<Self, Box<dyn Error + 'static, Global>>
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.
Implementors
impl BuildFromWindowSettings for NoWindow
[src]
pub fn build_from_window_settings(
settings: &WindowSettings
) -> Result<NoWindow, Box<dyn Error + 'static, Global>>
[src]
settings: &WindowSettings
) -> Result<NoWindow, Box<dyn Error + 'static, Global>>
Errors
This function will always return without error.