Enum flats::Scalar[][src]

pub enum Scalar {
    Bool(bool),
    Number(Number),
    String(String),
    Null,
}

Container for singlar, scalar values

Variants

A single boolean value

a single numeric value

a single string value

A null value (only particular to json serialized data)

Trait Implementations

impl Debug for Scalar
[src]

Formats the value using the given formatter. Read more

impl PartialEq for Scalar
[src]

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

This method tests for !=.

impl Clone for Scalar
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Display for Scalar
[src]

Formats the value using the given formatter. Read more

impl From<i8> for Scalar
[src]

Performs the conversion.

impl From<i16> for Scalar
[src]

Performs the conversion.

impl From<i32> for Scalar
[src]

Performs the conversion.

impl From<i64> for Scalar
[src]

Performs the conversion.

impl From<isize> for Scalar
[src]

Performs the conversion.

impl From<u8> for Scalar
[src]

Performs the conversion.

impl From<u16> for Scalar
[src]

Performs the conversion.

impl From<u32> for Scalar
[src]

Performs the conversion.

impl From<u64> for Scalar
[src]

Performs the conversion.

impl From<usize> for Scalar
[src]

Performs the conversion.

impl From<f32> for Scalar
[src]

Performs the conversion.

impl From<f64> for Scalar
[src]

Performs the conversion.

impl From<bool> for Scalar
[src]

Performs the conversion.

impl From<String> for Scalar
[src]

Performs the conversion.

impl<'a> From<&'a str> for Scalar
[src]

Performs the conversion.

impl<'a> From<Cow<'a, str>> for Scalar
[src]

Performs the conversion.

Auto Trait Implementations

impl Send for Scalar

impl Sync for Scalar