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
sourceimpl EbmlSpecification<EmptySpec> for EmptySpec
impl EbmlSpecification<EmptySpec> for EmptySpec
sourcefn get_tag_data_type(_id: u64) -> TagDataType
fn get_tag_data_type(_id: u64) -> TagDataType
Pulls the data type for a tag from the spec, based on the tag id. Read more
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn 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
sourcefn get_raw_tag(id: u64, data: &[u8]) -> EmptySpec
fn get_raw_tag(id: u64, data: &[u8]) -> EmptySpec
Creates a tag that does not conform to the spec. Read more
sourcefn get_tag_id(item: &T) -> u64
fn get_tag_id(item: &T) -> u64
Gets the id of a specific tag variant. Read more
sourceimpl EbmlTag<EmptySpec> for EmptySpec
impl EbmlTag<EmptySpec> for EmptySpec
sourcefn get_parent_id(&self) -> Option<u64>
fn get_parent_id(&self) -> Option<u64>
Gets the id of the parent of self, if any. Read more
sourcefn 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 more
sourcefn 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 more
sourcefn as_utf8(&self) -> Option<&str>
fn as_utf8(&self) -> Option<&str>
Gets a reference to the data contained in self as string slice. Read more
sourcefn as_binary(&self) -> Option<&[u8]>
fn as_binary(&self) -> Option<&[u8]>
Gets a reference to the data contained in self as binary data. Read more
sourceimpl Ord for EmptySpec
impl Ord for EmptySpec
sourceimpl PartialOrd<EmptySpec> for EmptySpec
impl PartialOrd<EmptySpec> for EmptySpec
sourcefn partial_cmp(&self, other: &EmptySpec) -> Option<Ordering>
fn partial_cmp(&self, other: &EmptySpec) -> Option<Ordering>
This method returns an ordering between self and other values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · sourcefn 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
impl Eq for EmptySpec
impl StructuralEq for EmptySpec
impl StructuralPartialEq for EmptySpec
Auto Trait Implementations
impl RefUnwindSafe for EmptySpec
impl Send for EmptySpec
impl Sync for EmptySpec
impl Unpin for EmptySpec
impl UnwindSafe for EmptySpec
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more