[−][src]Enum viperus::ViperusValue
ViperusValue encaspule data values of type String,i32 and bool
implements bidirectional conversion to respective values via Into
Example
use viperus::ViperusValue; let x:i32=ViperusValue::I32(42).into();
Variants
Str(String)
I32(i32)
BOOL(bool)
Trait Implementations
impl Clone for ViperusValue
[src]
fn clone(&self) -> ViperusValue
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for ViperusValue
[src]
impl<'_> From<&'_ str> for ViperusValue
[src]
fn from(src: &str) -> ViperusValue
[src]
impl<'a> From<&'a String> for ViperusValue
[src]
fn from(src: &'a String) -> ViperusValue
[src]
impl From<String> for ViperusValue
[src]
fn from(src: String) -> ViperusValue
[src]
impl From<bool> for ViperusValue
[src]
fn from(src: bool) -> ViperusValue
[src]
impl From<i32> for ViperusValue
[src]
fn from(src: i32) -> 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]
fn eq(&self, other: &ViperusValue) -> bool
[src]
fn ne(&self, other: &ViperusValue) -> bool
[src]
impl StructuralPartialEq for ViperusValue
[src]
Auto Trait Implementations
impl RefUnwindSafe for ViperusValue
impl Send for ViperusValue
impl Sync for ViperusValue
impl Unpin for ViperusValue
impl UnwindSafe for ViperusValue
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,