argui-platform 0.2.0

Native platform integrations for Argui applications
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::error::Error;

use argui_platform::PlatformError;
use winit::error::EventLoopError;

#[test]
fn platform_error_preserves_its_winit_cause() {
    let error = PlatformError::from(EventLoopError::ExitFailure(7));

    assert_eq!(error.to_string(), "platform error: Exit Failure: 7");
    assert!(error.source().is_some());
}