num-conv 0.2.2
README badge
[](https://proofs.rs/crate/num-conv?version=0.2.2)`num_conv` is a crate to convert between integer types without using `as` casts. This provides better certainty when refactoring, makes the exact behavior of code more explicit, and allows using turbofish syntax.
Reports (1)
Findings (0)
No findings reported for this version.
APIs (20)
APIClaims · findings
Functions
No functions.
Associated functions
No associated functions.
Methods
No inherent methods.
Traits
trait Extend
pub fn extend<T>(self: Self) -> T where Self: ExtendTarget<T>—trait Truncate
pub fn checked_truncate<T>(self: Self) -> Option<T> where Self: TruncateTarget<T>—pub fn saturating_truncate<T>(self: Self) -> T where Self: TruncateTarget<T>—pub fn truncate<T>(self: Self) -> T where Self: TruncateTarget<T>—trait Widen
pub fn widen<T>(self: Self) -> T where Self: WidenTarget<T>—trait prelude::_
pub fn checked_truncate<T>(self: Self) -> Option<T> where Self: TruncateTarget<T>—pub fn extend<T>(self: Self) -> T where Self: ExtendTarget<T>—pub fn saturating_truncate<T>(self: Self) -> T where Self: TruncateTarget<T>—pub fn truncate<T>(self: Self) -> T where Self: TruncateTarget<T>—pub fn widen<T>(self: Self) -> T where Self: WidenTarget<T>—Trait implementations
impl num_conv::Extend for T
impl num_conv::Truncate for T
pub fn checked_truncate<U>(self: Self) -> Option<U> where T: TruncateTarget<U>1 claimpub fn saturating_truncate<U>(self: Self) -> U where T: TruncateTarget<U>1 claimimpl num_conv::Widen for T
impl num_conv::prelude::_ for T
pub fn checked_truncate<U>(self: Self) -> Option<U> where T: TruncateTarget<U>—pub fn extend<U>(self: Self) -> U where T: ExtendTarget<U>—pub fn saturating_truncate<U>(self: Self) -> U where T: TruncateTarget<U>—pub fn truncate<U>(self: Self) -> U where T: TruncateTarget<U>—pub fn widen<U>(self: Self) -> U where T: WidenTarget<U>—