Trait entity::ValueLike[][src]

pub trait ValueLike: Sized {
    fn into_value(self) -> Value;
fn try_from_value(value: Value) -> Result<Self, Value>; }

Represents some data that can be converted to and from a Value

Required methods

fn into_value(self) -> Value[src]

Consumes this data, converting it into an abstract Value

fn try_from_value(value: Value) -> Result<Self, Value>[src]

Attempts to convert an abstract Value into this data, returning the owned value back if unable to convert

Loading content...

Implementations on Foreign Types

impl<T: ValueLike> ValueLike for Option<T>[src]

impl ValueLike for PathBuf[src]

impl ValueLike for OsString[src]

impl ValueLike for String[src]

impl<T: ValueLike> ValueLike for Vec<T>[src]

impl<T: ValueLike> ValueLike for VecDeque<T>[src]

impl<T: ValueLike> ValueLike for LinkedList<T>[src]

impl<T: ValueLike + Ord> ValueLike for BinaryHeap<T>[src]

impl<T: ValueLike + Hash + Eq> ValueLike for HashSet<T>[src]

impl<T: ValueLike + Ord> ValueLike for BTreeSet<T>[src]

impl<T: ValueLike> ValueLike for HashMap<String, T>[src]

impl<T: ValueLike> ValueLike for BTreeMap<String, T>[src]

Loading content...

Implementors

Loading content...