Trait tor_netdir::params::FromInt32Saturating

source ·
pub trait FromInt32Saturating {
    // Required method
    fn from_saturating(val: i32) -> Self;
}
Expand description

An object that can be constructed from an i32, with saturating semantics.

Required Methods§

source

fn from_saturating(val: i32) -> Self

Construct an instance of this object from val.

If val is too low, treat it as the lowest value that would be valid. If val is too high, treat it as the highest value that would be valid.

Object Safety§

This trait is not object safe.

Implementations on Foreign Types§

source§

impl FromInt32Saturating for i32

source§

fn from_saturating(val: i32) -> Self

source§

impl FromInt32Saturating for SendMeVersion

source§

fn from_saturating(val: i32) -> Self

source§

impl<T: Copy + Into<f64> + FromInt32Saturating> FromInt32Saturating for Percentage<T>

source§

fn from_saturating(val: i32) -> Self

source§

impl<T: FromInt32Saturating + TryInto<u64>> FromInt32Saturating for IntegerDays<T>

source§

fn from_saturating(val: i32) -> Self

source§

impl<T: FromInt32Saturating + TryInto<u64>> FromInt32Saturating for IntegerMilliseconds<T>

source§

fn from_saturating(val: i32) -> Self

source§

impl<T: FromInt32Saturating + TryInto<u64>> FromInt32Saturating for IntegerMinutes<T>

source§

fn from_saturating(val: i32) -> Self

source§

impl<T: FromInt32Saturating + TryInto<u64>> FromInt32Saturating for IntegerSeconds<T>

source§

fn from_saturating(val: i32) -> Self

source§

impl<const L: i32, const H: i32> FromInt32Saturating for BoundedInt32<L, H>

source§

fn from_saturating(val: i32) -> Self

Implementors§