pub trait TryConvert<T> {
// Required method
fn try_convert(&self) -> Option<T>;
}Expand description
A trait for types that can be converted to another type.
Required Methods§
Sourcefn try_convert(&self) -> Option<T>
fn try_convert(&self) -> Option<T>
Try to convert the value to the target type.