Update lib.rs

This commit is contained in:
nora 2022-10-16 15:43:45 +02:00 committed by GitHub
parent 94fcab3625
commit fbd5065934
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -16,9 +16,8 @@
//! choice of [`Backend`] (defaults to `usize`, `u64` and `u128` are also possible). It can store a //! choice of [`Backend`] (defaults to `usize`, `u64` and `u128` are also possible). It can store a
//! pointer or some `other` data. //! pointer or some `other` data.
//! //!
//! You can choose any arbitrary bitstuffing depending on the [`StuffingStrategy`], an unsafe trait that governs //! You can choose any arbitrary bitstuffing depending on the [`StuffingStrategy`], a trait that governs
//! how the `other` data (or the pointer itself) will be packed into the backend. While this trait is still unsafe, //! how the `other` data (or the pointer itself) will be packed into the backend.
//! it's a lot safer than doing everything by hand.
//! //!
//! # Example: NaN-Boxing //! # Example: NaN-Boxing
//! Pointers are hidden in the NaN values of floats. NaN boxing often involves also hiding booleans //! Pointers are hidden in the NaN values of floats. NaN boxing often involves also hiding booleans