Enum Value

enum Value

Value.

Variants

Undefined

Undefined (i.e. null).

String(String)

String value.

List(Vec<String>)

List.

Assoc(Vec<(String, String)>)

Associative array.

Implementations

impl Clone for Value

fn clone(self: &Self) -> Value

impl Debug for Value

fn fmt(self: &Self, f: &mut Formatter<'_>) -> Result

impl Freeze for Value

impl From for Value

fn from(v: String) -> Self

impl From for Value

fn from(v: &str) -> Self

impl RefUnwindSafe for Value

impl Send for Value

impl Sync for Value

impl Unpin for Value

impl UnsafeUnpin for Value

impl UnwindSafe for Value

impl<T> Any for Value

fn type_id(self: &Self) -> TypeId

impl<T> Borrow for Value

fn borrow(self: &Self) -> &T

impl<T> BorrowMut for Value

fn borrow_mut(self: &mut Self) -> &mut T

impl<T> CloneToUninit for Value

unsafe fn clone_to_uninit(self: &Self, dest: *mut u8)

impl<T> From for Value

fn from(t: T) -> T

Returns the argument unchanged.

impl<T> ToOwned for Value

fn to_owned(self: &Self) -> T
fn clone_into(self: &Self, target: &mut T)

impl<T, U> Into for Value

fn into(self: Self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of [From]<T> for U chooses to do.

impl<T, U> TryFrom for Value

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

impl<T, U> TryInto for Value

fn try_into(self: Self) -> Result<U, <U as TryFrom<T>>::Error>