windows_result/
lib.rs

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