Struct ebml_iterable_specification::empty_spec::EmptySpec
source · pub struct EmptySpec { /* private fields */ }
Expand description
An empty specification for use with examples or testing.
This struct isn’t intended for production use and should only be used for examples or PoCs. Use at your own risk - may change in the future without warning.
NOT SUITABLE FOR PRODUCTION
Implementations§
Trait Implementations§
source§impl EbmlSpecification<EmptySpec> for EmptySpec
impl EbmlSpecification<EmptySpec> for EmptySpec
source§fn get_tag_data_type(_id: u64) -> Option<TagDataType>
fn get_tag_data_type(_id: u64) -> Option<TagDataType>
Pulls the data type for a tag from the spec, based on the tag id. Read more
source§fn get_path_by_id(_id: u64) -> &'static [PathPart]
fn get_path_by_id(_id: u64) -> &'static [PathPart]
Gets the schema path of a specific tag. Read more
source§fn get_unsigned_int_tag(_id: u64, _data: u64) -> Option<EmptySpec>
fn get_unsigned_int_tag(_id: u64, _data: u64) -> Option<EmptySpec>
Creates an unsigned integer type tag from the spec. Read more
source§fn get_signed_int_tag(_id: u64, _data: i64) -> Option<EmptySpec>
fn get_signed_int_tag(_id: u64, _data: i64) -> Option<EmptySpec>
Creates a signed integer type tag from the spec. Read more
source§fn get_utf8_tag(_id: u64, _data: String) -> Option<EmptySpec>
fn get_utf8_tag(_id: u64, _data: String) -> Option<EmptySpec>
Creates a utf8 type tag from the spec. Read more
source§fn get_binary_tag(id: u64, data: &[u8]) -> Option<EmptySpec>
fn get_binary_tag(id: u64, data: &[u8]) -> Option<EmptySpec>
Creates a binary type tag from the spec. Read more
source§fn get_float_tag(_id: u64, _data: f64) -> Option<EmptySpec>
fn get_float_tag(_id: u64, _data: f64) -> Option<EmptySpec>
Creates a float type tag from the spec. Read more
source§fn get_master_tag(id: u64, data: Master<EmptySpec>) -> Option<EmptySpec>
fn get_master_tag(id: u64, data: Master<EmptySpec>) -> Option<EmptySpec>
Creates a master type tag from the spec. Read more
source§impl EbmlTag<EmptySpec> for EmptySpec
impl EbmlTag<EmptySpec> for EmptySpec
source§fn as_unsigned_int(&self) -> Option<&u64>
fn as_unsigned_int(&self) -> Option<&u64>
Gets a reference to the data contained in
self
as an unsigned integer. Read moresource§fn as_signed_int(&self) -> Option<&i64>
fn as_signed_int(&self) -> Option<&i64>
Gets a reference to the data contained in
self
as an integer. Read moresource§fn as_utf8(&self) -> Option<&str>
fn as_utf8(&self) -> Option<&str>
Gets a reference to the data contained in
self
as string slice. Read moresource§fn as_binary(&self) -> Option<&[u8]>
fn as_binary(&self) -> Option<&[u8]>
Gets a reference to the data contained in
self
as binary data. Read moresource§impl Ord for EmptySpec
impl Ord for EmptySpec
source§impl PartialEq<EmptySpec> for EmptySpec
impl PartialEq<EmptySpec> for EmptySpec
source§impl PartialOrd<EmptySpec> for EmptySpec
impl PartialOrd<EmptySpec> for EmptySpec
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more