pub struct SubtitleSegment<'a> {
pub more: bool,
pub segment: &'a [u8],
}Expand description
subtitle_segment() object (Table 38): a verbatim DVB_Subtitling_segment.
The _last (9F 88 0E) / _more (9F 88 0F) tags share this body;
SubtitleSegment::more selects which tag is written and is set from the tag.
Fields§
§more: booltrue = subtitle_segment_more; false = subtitle_segment_last.
segment: &'a [u8]The DVB_Subtitling_segment bytes (reference [9]), verbatim.
Implementations§
Source§impl<'a> SubtitleSegment<'a>
impl<'a> SubtitleSegment<'a>
Sourcepub fn tag(&self) -> ApduTag
pub fn tag(&self) -> ApduTag
The apdu_tag for this object given SubtitleSegment::more.
Trait Implementations§
Source§impl<'a> ApduDef<'a> for SubtitleSegment<'a>
impl<'a> ApduDef<'a> for SubtitleSegment<'a>
Source§impl<'a> Clone for SubtitleSegment<'a>
impl<'a> Clone for SubtitleSegment<'a>
Source§fn clone(&self) -> SubtitleSegment<'a>
fn clone(&self) -> SubtitleSegment<'a>
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl<'a> Debug for SubtitleSegment<'a>
impl<'a> Debug for SubtitleSegment<'a>
impl<'a> Eq for SubtitleSegment<'a>
Source§impl<'a> From<SubtitleSegment<'a>> for AnyApdu<'a>
impl<'a> From<SubtitleSegment<'a>> for AnyApdu<'a>
Source§fn from(v: SubtitleSegment<'a>) -> Self
fn from(v: SubtitleSegment<'a>) -> Self
Converts to this type from the input type.
Source§impl<'a> Parse<'a> for SubtitleSegment<'a>
impl<'a> Parse<'a> for SubtitleSegment<'a>
Source§impl<'a> PartialEq for SubtitleSegment<'a>
impl<'a> PartialEq for SubtitleSegment<'a>
Source§fn eq(&self, other: &SubtitleSegment<'a>) -> bool
fn eq(&self, other: &SubtitleSegment<'a>) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl<'a> Serialize for SubtitleSegment<'a>
impl<'a> Serialize for SubtitleSegment<'a>
Source§impl Serialize for SubtitleSegment<'_>
impl Serialize for SubtitleSegment<'_>
Source§type Error = Error
type Error = Error
The error type this implementer returns (usually the same as the
corresponding
Parse impl, but need not be).Source§fn serialized_len(&self) -> usize
fn serialized_len(&self) -> usize
Number of bytes
serialize_into will write.impl<'a> StructuralPartialEq for SubtitleSegment<'a>
Auto Trait Implementations§
impl<'a> Freeze for SubtitleSegment<'a>
impl<'a> RefUnwindSafe for SubtitleSegment<'a>
impl<'a> Send for SubtitleSegment<'a>
impl<'a> Sync for SubtitleSegment<'a>
impl<'a> Unpin for SubtitleSegment<'a>
impl<'a> UnsafeUnpin for SubtitleSegment<'a>
impl<'a> UnwindSafe for SubtitleSegment<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more