Enum clouseau::Value[][src]

pub enum Value {
    String(String),
    Int(i64),
    Bool(bool),
    Array(Array),
}

Variants

String(String)
Int(i64)
Bool(bool)
Array(Array)

Implementations

impl Value[src]

pub fn into_int(self) -> Option<i64>[src]

pub fn into_value_or_queryable(self) -> ValueOrQueryable<'static>[src]

Trait Implementations

impl Clone for Value[src]

pub fn clone(&self) -> Value[src]

Returns a copy of the value. Read more

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

impl Debug for Value[src]

pub fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>[src]

Formats the value using the given formatter. Read more

impl Display for Value[src]

pub fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>[src]

Formats the value using the given formatter. Read more

impl<'_> From<&'_ NonZeroI128> for Value[src]

pub fn from(v: &NonZeroI128) -> Value[src]

Performs the conversion.

impl<'_> From<&'_ NonZeroI16> for Value[src]

pub fn from(v: &NonZeroI16) -> Value[src]

Performs the conversion.

impl<'_> From<&'_ NonZeroI32> for Value[src]

pub fn from(v: &NonZeroI32) -> Value[src]

Performs the conversion.

impl<'_> From<&'_ NonZeroI64> for Value[src]

pub fn from(v: &NonZeroI64) -> Value[src]

Performs the conversion.

impl<'_> From<&'_ NonZeroI8> for Value[src]

pub fn from(v: &NonZeroI8) -> Value[src]

Performs the conversion.

impl<'_> From<&'_ NonZeroIsize> for Value[src]

pub fn from(v: &NonZeroIsize) -> Value[src]

Performs the conversion.

impl<'_> From<&'_ NonZeroU128> for Value[src]

pub fn from(v: &NonZeroU128) -> Value[src]

Performs the conversion.

impl<'_> From<&'_ NonZeroU16> for Value[src]

pub fn from(v: &NonZeroU16) -> Value[src]

Performs the conversion.

impl<'_> From<&'_ NonZeroU32> for Value[src]

pub fn from(v: &NonZeroU32) -> Value[src]

Performs the conversion.

impl<'_> From<&'_ NonZeroU64> for Value[src]

pub fn from(v: &NonZeroU64) -> Value[src]

Performs the conversion.

impl<'_> From<&'_ NonZeroU8> for Value[src]

pub fn from(v: &NonZeroU8) -> Value[src]

Performs the conversion.

impl<'_> From<&'_ NonZeroUsize> for Value[src]

pub fn from(v: &NonZeroUsize) -> Value[src]

Performs the conversion.

impl<'_> From<&'_ String> for Value[src]

pub fn from(v: &String) -> Value[src]

Performs the conversion.

impl<'_> From<&'_ bool> for Value[src]

pub fn from(b: &bool) -> Value[src]

Performs the conversion.

impl<'_> From<&'_ i128> for Value[src]

pub fn from(v: &i128) -> Value[src]

Performs the conversion.

impl<'_> From<&'_ i16> for Value[src]

pub fn from(v: &i16) -> Value[src]

Performs the conversion.

impl<'_> From<&'_ i32> for Value[src]

pub fn from(v: &i32) -> Value[src]

Performs the conversion.

impl<'_> From<&'_ i64> for Value[src]

pub fn from(v: &i64) -> Value[src]

Performs the conversion.

impl<'_> From<&'_ i8> for Value[src]

pub fn from(v: &i8) -> Value[src]

Performs the conversion.

impl<'_> From<&'_ isize> for Value[src]

pub fn from(v: &isize) -> Value[src]

Performs the conversion.

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

pub fn from(v: &str) -> Value[src]

Performs the conversion.

impl<'_> From<&'_ u128> for Value[src]

pub fn from(v: &u128) -> Value[src]

Performs the conversion.

impl<'_> From<&'_ u16> for Value[src]

pub fn from(v: &u16) -> Value[src]

Performs the conversion.

impl<'_> From<&'_ u32> for Value[src]

pub fn from(v: &u32) -> Value[src]

Performs the conversion.

impl<'_> From<&'_ u64> for Value[src]

pub fn from(v: &u64) -> Value[src]

Performs the conversion.

impl<'_> From<&'_ u8> for Value[src]

pub fn from(v: &u8) -> Value[src]

Performs the conversion.

impl<'_> From<&'_ usize> for Value[src]

pub fn from(v: &usize) -> Value[src]

Performs the conversion.

impl<'b, T> From<Cow<'b, T>> for Value where
    T: ToOwned,
    Value: From<&'b T>,
    Value: From<<T as ToOwned>::Owned>, 
[src]

pub fn from(v: Cow<'b, T>) -> Value[src]

Performs the conversion.

impl From<NonZeroI128> for Value[src]

pub fn from(v: NonZeroI128) -> Value[src]

Performs the conversion.

impl From<NonZeroI16> for Value[src]

pub fn from(v: NonZeroI16) -> Value[src]

Performs the conversion.

impl From<NonZeroI32> for Value[src]

pub fn from(v: NonZeroI32) -> Value[src]

Performs the conversion.

impl From<NonZeroI64> for Value[src]

pub fn from(v: NonZeroI64) -> Value[src]

Performs the conversion.

impl From<NonZeroI8> for Value[src]

pub fn from(v: NonZeroI8) -> Value[src]

Performs the conversion.

impl From<NonZeroIsize> for Value[src]

pub fn from(v: NonZeroIsize) -> Value[src]

Performs the conversion.

impl From<NonZeroU128> for Value[src]

pub fn from(v: NonZeroU128) -> Value[src]

Performs the conversion.

impl From<NonZeroU16> for Value[src]

pub fn from(v: NonZeroU16) -> Value[src]

Performs the conversion.

impl From<NonZeroU32> for Value[src]

pub fn from(v: NonZeroU32) -> Value[src]

Performs the conversion.

impl From<NonZeroU64> for Value[src]

pub fn from(v: NonZeroU64) -> Value[src]

Performs the conversion.

impl From<NonZeroU8> for Value[src]

pub fn from(v: NonZeroU8) -> Value[src]

Performs the conversion.

impl From<NonZeroUsize> for Value[src]

pub fn from(v: NonZeroUsize) -> Value[src]

Performs the conversion.

impl From<String> for Value[src]

pub fn from(v: String) -> Value[src]

Performs the conversion.

impl From<bool> for Value[src]

pub fn from(b: bool) -> Value[src]

Performs the conversion.

impl From<i128> for Value[src]

pub fn from(v: i128) -> Value[src]

Performs the conversion.

impl From<i16> for Value[src]

pub fn from(v: i16) -> Value[src]

Performs the conversion.

impl From<i32> for Value[src]

pub fn from(v: i32) -> Value[src]

Performs the conversion.

impl From<i64> for Value[src]

pub fn from(v: i64) -> Value[src]

Performs the conversion.

impl From<i8> for Value[src]

pub fn from(v: i8) -> Value[src]

Performs the conversion.

impl From<isize> for Value[src]

pub fn from(v: isize) -> Value[src]

Performs the conversion.

impl From<u128> for Value[src]

pub fn from(v: u128) -> Value[src]

Performs the conversion.

impl From<u16> for Value[src]

pub fn from(v: u16) -> Value[src]

Performs the conversion.

impl From<u32> for Value[src]

pub fn from(v: u32) -> Value[src]

Performs the conversion.

impl From<u64> for Value[src]

pub fn from(v: u64) -> Value[src]

Performs the conversion.

impl From<u8> for Value[src]

pub fn from(v: u8) -> Value[src]

Performs the conversion.

impl From<usize> for Value[src]

pub fn from(v: usize) -> Value[src]

Performs the conversion.

impl Ord for Value[src]

pub fn cmp(&self, other: &Value) -> Ordering[src]

This method returns an Ordering between self and other. Read more

#[must_use]
fn max(self, other: Self) -> Self
1.21.0[src]

Compares and returns the maximum of two values. Read more

#[must_use]
fn min(self, other: Self) -> Self
1.21.0[src]

Compares and returns the minimum of two values. Read more

#[must_use]
fn clamp(self, min: Self, max: Self) -> Self
1.50.0[src]

Restrict a value to a certain interval. Read more

impl PartialEq<Value> for Value[src]

pub fn eq(&self, other: &Value) -> bool[src]

This method tests for self and other values to be equal, and is used by ==. Read more

pub fn ne(&self, other: &Value) -> bool[src]

This method tests for !=.

impl PartialOrd<Value> for Value[src]

pub fn partial_cmp(&self, other: &Value) -> Option<Ordering>[src]

This method returns an ordering between self and other values if one exists. Read more

#[must_use]
fn lt(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests less than (for self and other) and is used by the < operator. Read more

#[must_use]
fn le(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

#[must_use]
fn gt(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

#[must_use]
fn ge(&self, other: &Rhs) -> bool
1.0.0[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl<'a> Queryable<'a> for Value[src]

pub fn data(&self) -> Option<Value>[src]

fn member(&'a self, &'f Value) -> Option<&'a (dyn Queryable<'a> + 'a)>[src]

fn all(&'a self) -> TreeIter<'a>

Notable traits for TreeIter<'a>

impl<'a> Iterator for TreeIter<'a> type Item = &'a (dyn Queryable<'a> + 'a);
[src]

impl Eq for Value[src]

impl StructuralEq for Value[src]

impl StructuralPartialEq for Value[src]

Auto Trait Implementations

impl !RefUnwindSafe for Value

impl !Send for Value

impl !Sync for Value

impl Unpin for Value

impl !UnwindSafe for Value

Blanket Implementations

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

pub fn type_id(&self) -> TypeId[src]

Gets the TypeId of self. Read more

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

pub fn borrow(&self) -> &T[src]

Immutably borrows from an owned value. Read more

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

pub fn borrow_mut(&mut self) -> &mut T[src]

Mutably borrows from an owned value. Read more

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

pub fn from(t: T) -> T[src]

Performs the conversion.

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

pub fn into(self) -> U[src]

Performs the conversion.

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

type Owned = T

The resulting type after obtaining ownership.

pub fn to_owned(&self) -> T[src]

Creates owned data from borrowed data, usually by cloning. Read more

pub fn clone_into(&self, target: &mut T)[src]

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

impl<T> ToString for T where
    T: Display + ?Sized
[src]

pub default fn to_string(&self) -> String[src]

Converts the given value to a String. Read more

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.

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

Performs the conversion.

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.

pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]

Performs the conversion.