pub trait FromRant: Sized {
fn from_rant(val: RantValue) -> Result<Self, ValueError>;
fn is_rant_optional() -> bool;
}
Expand description
Enables conversion from a RantValue
to a native type.
Required methods
fn from_rant(val: RantValue) -> Result<Self, ValueError>
fn from_rant(val: RantValue) -> Result<Self, ValueError>
Convert from a RantValue
.
fn is_rant_optional() -> bool
fn is_rant_optional() -> bool
Returns true if the type can be used to represent an optional Rant parameter.