//! Lossless integer conversions that the standard library does not offer as `From` impls.
use crate;
const _: = assert!;
/// `u32` to `usize` (lossless: `usize` is at least 32 bits, checked above).
pub const
/// `usize` to `u64` (lossless on every supported target).
pub const
/// `usize` to `u32`, failing with `IllegalArgument` past `u32::MAX`.
/// `(float) x` for a double, as Lucene does when narrowing summed boosts.
pub const