windows_result/
lib.rs

1#![doc = include_str!("../readme.md")]
2#![debugger_visualizer(natvis_file = "../windows-result.natvis")]
3#![cfg_attr(all(not(feature = "std"), not(test)), no_std)]
4#![cfg_attr(not(windows), allow(unused_imports))]
5
6extern crate alloc;
7
8#[allow(unused_imports)]
9use alloc::{string::String, vec::Vec};
10
11mod bindings;
12use bindings::*;
13
14#[cfg(all(windows, not(windows_slim_errors)))]
15mod com;
16
17#[cfg(windows)]
18mod strings;
19#[cfg(windows)]
20use strings::*;
21
22#[cfg(all(windows, not(windows_slim_errors)))]
23mod bstr;
24
25mod error;
26pub use error::*;
27
28mod hresult;
29pub use hresult::HRESULT;
30
31mod bool;
32pub use bool::BOOL;
33
34/// A specialized [`Result`] type that provides Windows error information.
35pub type Result<T> = core::result::Result<T, Error>;