Sha256: 9673f8d82af0325a5924b9afe07af39e7ea82731c3caca126e39cd9596dd4e63

Contents?: true

Size: 1.31 KB

Versions: 19

Compression:

Stored size: 1.31 KB

Contents

/*!
Learn more about Rust for Windows here: <https://github.com/microsoft/windows-rs>
*/

#![doc(html_no_source)]
#![allow(non_snake_case)]
#![cfg_attr(windows_debugger_visualizer, debugger_visualizer(natvis_file = "../windows.natvis"))]

extern crate self as windows_core;

#[doc(hidden)]
pub mod imp;

mod agile_reference;
mod array;
mod as_impl;
mod com_interface;
mod error;
mod event;
mod guid;
mod hresult;
mod inspectable;
mod interface;
mod param;
mod runtime_name;
mod runtime_type;
mod scoped_interface;
mod strings;
mod r#type;
mod unknown;
mod weak;

pub use agile_reference::*;
pub use array::*;
pub use as_impl::*;
pub use com_interface::*;
pub use error::*;
pub use event::*;
pub use guid::*;
pub use hresult::*;
pub use inspectable::*;
pub use interface::*;
pub use param::*;
pub use r#type::*;
pub use runtime_name::*;
pub use runtime_type::*;
pub use scoped_interface::*;
pub use strings::*;
pub use unknown::*;
pub use weak::*;

/// A specialized [`Result`] type that provides Windows error information.
pub type Result<T> = std::result::Result<T, Error>;

/// Attempts to load the factory object for the given WinRT class.
/// This can be used to access COM interfaces implemented on a Windows Runtime class factory.
pub fn factory<C: RuntimeName, I: ComInterface>() -> Result<I> {
    crate::imp::factory::<C, I>()
}

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
wasmtime-29.0.0 ./ext/cargo-vendor/windows-core-0.52.0/src/lib.rs
wasmtime-28.0.0 ./ext/cargo-vendor/windows-core-0.52.0/src/lib.rs
wasmtime-27.0.0 ./ext/cargo-vendor/windows-core-0.52.0/src/lib.rs
wasmtime-26.0.0 ./ext/cargo-vendor/windows-core-0.52.0/src/lib.rs
wasmtime-25.0.2 ./ext/cargo-vendor/windows-core-0.52.0/src/lib.rs
wasmtime-25.0.1 ./ext/cargo-vendor/windows-core-0.52.0/src/lib.rs
wasmtime-25.0.0 ./ext/cargo-vendor/windows-core-0.52.0/src/lib.rs
wasmtime-24.0.0 ./ext/cargo-vendor/windows-core-0.52.0/src/lib.rs
wasmtime-23.0.2 ./ext/cargo-vendor/windows-core-0.52.0/src/lib.rs
wasmtime-22.0.0 ./ext/cargo-vendor/windows-core-0.52.0/src/lib.rs
wasmtime-21.0.1 ./ext/cargo-vendor/windows-core-0.52.0/src/lib.rs
wasmtime-20.0.2 ./ext/cargo-vendor/windows-core-0.52.0/src/lib.rs
wasmtime-20.0.0 ./ext/cargo-vendor/windows-core-0.52.0/src/lib.rs
wasmtime-18.0.3 ./ext/cargo-vendor/windows-core-0.52.0/src/lib.rs
wasmtime-17.0.1 ./ext/cargo-vendor/windows-core-0.52.0/src/lib.rs
wasmtime-17.0.0 ./ext/cargo-vendor/windows-core-0.52.0/src/lib.rs
wasmtime-16.0.0 ./ext/cargo-vendor/windows-core-0.52.0/src/lib.rs
wasmtime-15.0.1 ./ext/cargo-vendor/windows-core-0.52.0/src/lib.rs
wasmtime-15.0.0 ./ext/cargo-vendor/windows-core-0.52.0/src/lib.rs