Enum tycho::Value[][src]

pub enum Value {
    Null,
    Boolean(bool),
    String(String),
    Char(char),
    Number(Number),
    Bytes(Vec<u8>),
    UUID(Uuid),
}

A primitive terminating type, used when creating tycho data.

Values can contains numerical values using numbers

Variants

Null

A null value, representing no data.

Used as a placeholder type. When handling no data, use a unit instead.

Boolean(bool)

A boolean value representing true or false.

String(String)

A UTF-8 length prefixed string.

Char(char)

A single UTF-8 character, (not length or terminated)

Number(Number)

A numerical value.

Bytes(Vec<u8>)

A length prefixed set of unsigned octet bytes.

UUID(Uuid)

A 16 bytes unique identifier

Trait Implementations

impl Clone for Value[src]

impl Debug for Value[src]

impl Display for Value[src]

impl Eq for Value[src]

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

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

impl From<Number> for Value[src]

impl From<String> for Value[src]

impl From<Uuid> for Value[src]

impl From<Value> for Element[src]

impl From<Vec<u8, Global>> for Value[src]

impl From<bool> for Value[src]

impl From<char> for Value[src]

impl From<f32> for Value[src]

impl From<f64> for Value[src]

impl From<i128> for Value[src]

impl From<i16> for Value[src]

impl From<i32> for Value[src]

impl From<i64> for Value[src]

impl From<i8> for Value[src]

impl From<u128> for Value[src]

impl From<u16> for Value[src]

impl From<u32> for Value[src]

impl From<u64> for Value[src]

impl From<u8> for Value[src]

impl Hash for Value[src]

impl Ident for Value[src]

type IdentType = ValueIdent

Respective ident type

impl PartialEq<Value> for Value[src]

impl PartialOrd<Value> for Value[src]

impl StructuralEq for Value[src]

impl StructuralPartialEq for Value[src]

impl TryFrom<Value> for Vec<u8>[src]

type Error = ()

The type returned in the event of a conversion error.

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]

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> ToString for T where
    T: Display + ?Sized
[src]

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,