pub struct MetadataValInit<T> {
pub v_default: T,
pub v_min: Option<T>,
pub v_max: Option<T>,
pub v_one_of: Vec<T>,
pub fn_validate: fn(_: &Metadata, _: &mut dyn Any) -> Option<bool>,
}
Immutably borrows from an owned value.
Read more
Mutably borrows from an owned value.
Read more
Returns the argument unchanged.
Calls U::from(self).
That is, this conversion is whatever the implementation of
From<T> for U chooses to do.
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.