pub enum ParsedValue<Extra: ParsableValue = ()> {
Address(ParsedAddress),
InferredNum(u128),
U8(u8),
U64(u64),
U128(u128),
Bool(bool),
Vector(Vec<ParsedValue<Extra>>),
Struct(ParsedAddress, String, String, BTreeMap<String, ParsedValue<Extra>>),
Custom(Extra),
}
Variants
Address(ParsedAddress)
InferredNum(u128)
U8(u8)
U64(u64)
U128(u128)
Bool(bool)
Vector(Vec<ParsedValue<Extra>>)
Struct(ParsedAddress, String, String, BTreeMap<String, ParsedValue<Extra>>)
Custom(Extra)
Implementations
sourceimpl<Extra: ParsableValue> ParsedValue<Extra>
impl<Extra: ParsableValue> ParsedValue<Extra>
pub fn parse(s: &str) -> Result<ParsedValue<Extra>>
sourceimpl<Extra: ParsableValue> ParsedValue<Extra>
impl<Extra: ParsableValue> ParsedValue<Extra>
pub fn into_concrete_value(
self,
mapping: &impl Fn(&str) -> Option<AccountAddress>
) -> Result<Extra::ConcreteValue>
Trait Implementations
sourceimpl<Extra: Clone + ParsableValue> Clone for ParsedValue<Extra>
impl<Extra: Clone + ParsableValue> Clone for ParsedValue<Extra>
sourcefn clone(&self) -> ParsedValue<Extra>
fn clone(&self) -> ParsedValue<Extra>
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl<Extra: Debug + ParsableValue> Debug for ParsedValue<Extra>
impl<Extra: Debug + ParsableValue> Debug for ParsedValue<Extra>
sourceimpl<Extra: PartialEq + ParsableValue> PartialEq<ParsedValue<Extra>> for ParsedValue<Extra>
impl<Extra: PartialEq + ParsableValue> PartialEq<ParsedValue<Extra>> for ParsedValue<Extra>
sourcefn eq(&self, other: &ParsedValue<Extra>) -> bool
fn eq(&self, other: &ParsedValue<Extra>) -> bool
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
sourcefn ne(&self, other: &ParsedValue<Extra>) -> bool
fn ne(&self, other: &ParsedValue<Extra>) -> bool
This method tests for !=
.
impl<Extra: Eq + ParsableValue> Eq for ParsedValue<Extra>
impl<Extra: ParsableValue> StructuralEq for ParsedValue<Extra>
impl<Extra: ParsableValue> StructuralPartialEq for ParsedValue<Extra>
Auto Trait Implementations
impl<Extra> RefUnwindSafe for ParsedValue<Extra> where
Extra: RefUnwindSafe,
impl<Extra> Send for ParsedValue<Extra> where
Extra: Send,
impl<Extra> Sync for ParsedValue<Extra> where
Extra: Sync,
impl<Extra> Unpin for ParsedValue<Extra> where
Extra: Unpin,
impl<Extra> UnwindSafe for ParsedValue<Extra> where
Extra: UnwindSafe + RefUnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more