Trait rant::TryFromRant
source · [−]pub trait TryFromRant: Sized {
fn try_from_rant(val: RantValue) -> Result<Self, ValueError>;
fn is_optional_param_type() -> bool { ... }
}
Expand description
Enables fallible conversion from a RantValue
.
Required Methods
fn try_from_rant(val: RantValue) -> Result<Self, ValueError>
fn try_from_rant(val: RantValue) -> Result<Self, ValueError>
Convert from a RantValue
.
Provided Methods
fn is_optional_param_type() -> bool
fn is_optional_param_type() -> bool
Returns true
if the type can be used to represent an optional Rant parameter in native functions; otherwise, false
.