xwt_anchor/lib.rs
1//! The anchor types for [`xwt_core`].
2//!
3//! Intended to be useful in overcoming the restriction on the implementations
4//! for foreign types.
5//!
6//! That is - if you want to implement something for [`xwt_core`] but can't -
7//! implement it concretely for an `xwt_anchor` type and switch to using
8//! `xwt_anchor`-wrapped types instead of raw `xwt_core` traits where
9//! applicable.
10//!
11//! This implementation is experimental, and we'll see on whether we'll keep
12//! maintaining it.
13
14#![no_std]
15
16mod impls;
17mod macros;
18mod types;
19
20pub use types::*;
21
22pub use xwt_core as core;
23
24/// Commonly used types and traits.
25///
26/// # Usage
27///
28/// ```
29/// use xwt_anchor::prelude::*;
30/// ```
31///
32/// Note that `use xwt_anchor::prelude::*;` is different from
33/// `use xwt_anchor::prelude::{a, c, c};` in that exported but unnamable items
34/// can't be imported by enumrating them, while `::*` *will* load them
35/// into scope.
36pub mod prelude {
37 pub use xwt_core::prelude::*;
38}