Enum ebml_iterable::tags::TagData[][src]

pub enum TagData {
    Master(Vec<(u64, TagData)>),
    UnsignedInt(u64),
    Integer(i64),
    Utf8(String),
    Binary(Vec<u8>),
    Float(f64),
}
Expand description

Contains the content of a tag.

This struct contains tag content data - i.e. the “meat” of the tag.

Note: This library made a concious decision to not parse “Date” elements from EBML due to lack of built-in support for dates in Rust. Specification implementations should treat Date elements as Binary so that consumers have the option of parsing the unaltered data using their library of choice, if needed.

Variants

Master(Vec<(u64, TagData)>)

A complete master tag containing any number of child tags.

UnsignedInt(u64)

An unsigned integer.

Integer(i64)

A signed integer.

Utf8(String)

A Unicode text string. Note that the [EBML spec][https://datatracker.ietf.org/doc/rfc8794/] includes a separate element type for ASCII. Given that ASCII is a subset of Utf8, this library currently parses and encodes both types using the same Utf8 element.

Binary(Vec<u8>)

Binary data, otherwise uninterpreted.

Float(f64)

IEEE-754 floating point number.

Implementations

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

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

This method tests for !=.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

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

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

recently added

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

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.