ownable_core/
lib.rs

1#![cfg_attr(not(feature = "std"), no_std)]
2#![cfg_attr(docsrs, feature(doc_cfg))]
3#![forbid(unsafe_code)]
4#![warn(missing_docs)]
5#![warn(clippy::pedantic)]
6#![allow(clippy::inline_always)]
7
8//! Please see the [ownable](https://docs.rs/ownable) crate for a more comprehensive overview.
9//!
10//! This crate contains the core types and traits used by `ownable` available without all of the
11//! macro related dependencies that get used for the derive macros. If you don't rely on the derive
12//! macros then you may benefit from pulling in fewer dependencies by relying directly on
13//! `ownable-core`.
14
15extern crate alloc;
16
17pub use crate::as_clone::AsClone;
18pub use crate::as_copy::AsCopy;
19pub use crate::traits::{IntoOwned, ToBorrowed, ToOwned};
20
21mod as_clone;
22mod as_copy;
23mod as_impl;
24mod traits;