This commit is contained in:
nora 2022-04-05 19:42:10 +02:00
parent 6db7e82491
commit e67600e818
2 changed files with 15 additions and 8 deletions

View file

@ -6,3 +6,4 @@ edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
stuff = "0.1.4"

View file

@ -1,8 +1,14 @@
#[cfg(test)]
mod tests {
#[test]
fn it_works() {
let result = 2 + 2;
assert_eq!(result, 4);
}
}
#![no_std]
#![warn(rust_2018_idioms)]
#![deny(unsafe_op_in_unsafe_fn)]
mod strategy;
pub use stuff::Backend;
use crate::strategy::{SafeStrategyAdaptor, SafeStuffingStrategy};
pub struct StuffedPtr<T, S, B = usize>(stuff::StuffedPtr<T, SafeStrategyAdaptor<S>, B>)
where
S: SafeStuffingStrategy<B>,
B: Backend<T>;