Enum thrift_codec::data::Elements [] [src]

pub enum Elements {
    Bool(Vec<bool>),
    I8(Vec<i8>),
    I16(Vec<i16>),
    I32(Vec<i32>),
    I64(Vec<i64>),
    Double(Vec<f64>),
    Binary(Vec<Vec<u8>>),
    Struct(Vec<Struct>),
    Map(Vec<Map>),
    Set(Vec<Set>),
    List(Vec<List>),
}

A sequence of the values of a data kind.

Variants

Methods

impl Elements
[src]

[src]

Makes an empty sequence which can have the elements belonging to kind.

[src]

Returns the element placed at the specified index.

[src]

Returns the element count of this sequence.

[src]

Returns true if this sequence has no elements.

[src]

Returns an iterator over the elements of this sequence.

[src]

Returns the kind of the elements in this sequence.

Trait Implementations

impl Debug for Elements
[src]

[src]

Formats the value using the given formatter.

impl Clone for Elements
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl PartialEq for Elements
[src]

[src]

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

[src]

This method tests for !=.

impl From<Vec<bool>> for Elements
[src]

[src]

Performs the conversion.

impl From<Vec<i8>> for Elements
[src]

[src]

Performs the conversion.

impl From<Vec<i16>> for Elements
[src]

[src]

Performs the conversion.

impl From<Vec<i32>> for Elements
[src]

[src]

Performs the conversion.

impl From<Vec<i64>> for Elements
[src]

[src]

Performs the conversion.

impl From<Vec<f64>> for Elements
[src]

[src]

Performs the conversion.

impl From<Vec<Vec<u8>>> for Elements
[src]

[src]

Performs the conversion.

impl From<Vec<Struct>> for Elements
[src]

[src]

Performs the conversion.

impl From<Vec<Map>> for Elements
[src]

[src]

Performs the conversion.

impl From<Vec<Set>> for Elements
[src]

[src]

Performs the conversion.

impl From<Vec<List>> for Elements
[src]

[src]

Performs the conversion.