[][src]Enum viperus::ViperusValue

pub enum ViperusValue {
    Empty,
    Str(String),
    I32(i32),
    BOOL(bool),
}

ViperusValue encaspule data values of type String,i32 and bool

implements bidirectional conversion to respective values via Into and From

Example

use viperus::ViperusValue;
let x:i32=ViperusValue::I32(42).into();

Variants

Empty
Str(String)
I32(i32)
BOOL(bool)

Trait Implementations

impl Clone for ViperusValue[src]

impl Debug for ViperusValue[src]

impl<'_> From<&'_ str> for ViperusValue[src]

impl<'a> From<&'a String> for ViperusValue[src]

impl From<String> for ViperusValue[src]

impl From<bool> for ViperusValue[src]

impl From<i32> for ViperusValue[src]

impl<'a> Into<&'a str> for &'a ViperusValue[src]

impl<'a> Into<String> for &'a ViperusValue[src]

impl Into<String> for ViperusValue[src]

impl<'_> Into<bool> for &'_ ViperusValue[src]

impl Into<bool> for ViperusValue[src]

impl<'_> Into<i32> for &'_ ViperusValue[src]

impl Into<i32> for ViperusValue[src]

impl PartialEq<ViperusValue> for ViperusValue[src]

impl StructuralPartialEq for ViperusValue[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.