Skip to content

Latest commit

History

History
27 lines (17 loc) 路 960 Bytes

File metadata and controls

27 lines (17 loc) 路 960 Bytes

windows-reference

A stock implementation of the WinRT IReference<T> interface.

Many Windows APIs use IReference<T> to box an optional or by-reference value (the WinRT equivalent of Nullable<T>). windows-reference provides a ready implementation so you can wrap a Rust value and hand it to such an API.


Internal documentation

The remainder of this page covers how the crate is built and maintained. It is for contributors and is not needed to use windows-reference.

How it's built

src/bindings.rs is generated; the IReference<T> implementation is hand-written.

Testing

Run cargo test -p windows-reference; see also the workspace test crates.