is_within_range

Function is_within_range 

Source
pub fn is_within_range<T, R>(string: String, range: R) -> Result<(), String>
where T: FromStr + Copy + Debug + PartialOrd + Add<Output = T> + From<usize>, T::Err: Display, R: RangeBounds<T> + Debug,
👎Deprecated since 3.1.0: This crate has been marked for formal inclusion in the Agave Unstable API. From v4.0.0 onward, the agave-unstable-api crate feature must be specified to acknowledge use of an interface that may break without warning.