Trait move_command_line_common::values::ParsableValue
source · [−]pub trait ParsableValue: Sized {
type ConcreteValue;
fn parse_value<'a, I: Iterator<Item = (ValueToken, &'a str)>>(
parser: &mut Parser<'a, ValueToken, I>
) -> Option<Result<Self>>;
fn move_value_into_concrete(v: MoveValue) -> Result<Self::ConcreteValue>;
fn concrete_vector(
elems: Vec<Self::ConcreteValue>
) -> Result<Self::ConcreteValue>;
fn concrete_struct(
addr: AccountAddress,
module: String,
name: String,
values: BTreeMap<String, Self::ConcreteValue>
) -> Result<Self::ConcreteValue>;
fn into_concrete_value(
self,
mapping: &impl Fn(&str) -> Option<AccountAddress>
) -> Result<Self::ConcreteValue>;
}