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
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.
A length prefixed set of unsigned octet bytes.
UUID(Uuid)
A 16 bytes unique identifier
Trait Implementations
impl Ident for Value
[src]
impl Ident for Value
[src]type IdentType = ValueIdent
type IdentType = ValueIdent
Respective ident type
impl PartialOrd<Value> for Value
[src]
impl PartialOrd<Value> for Value
[src]fn partial_cmp(&self, other: &Value) -> Option<Ordering>
[src]
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]
#[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]
#[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
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> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
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]
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<V, T> VZip<V> for T where
V: MultiLane<T>,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,