pub struct NoCustomTag;Expand description
Implementation of CustomTag for convenience default HlsLine::Custom implementation.
Given that HlsLine takes a generic parameter, if this struct did not exist, then the user
would always have to define some custom tag implementation to use the library. This would add
unintended complexity. Therefore, this struct comes with the library, and provides the default
implementation of CustomTag. This implementation ensures that it is never parsed from source
data, because Self::is_known_name always returns false.
Trait Implementations§
Source§impl Clone for NoCustomTag
impl Clone for NoCustomTag
Source§fn clone(&self) -> NoCustomTag
fn clone(&self) -> NoCustomTag
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl CustomTag<'_> for NoCustomTag
impl CustomTag<'_> for NoCustomTag
Source§impl Debug for NoCustomTag
impl Debug for NoCustomTag
Source§impl PartialEq for NoCustomTag
impl PartialEq for NoCustomTag
Source§impl TryFrom<UnknownTag<'_>> for NoCustomTag
impl TryFrom<UnknownTag<'_>> for NoCustomTag
Source§type Error = ValidationError
type Error = ValidationError
The type returned in the event of a conversion error.
Source§impl WritableCustomTag<'_> for NoCustomTag
impl WritableCustomTag<'_> for NoCustomTag
Source§fn into_writable_tag(self) -> WritableTag<'static>
fn into_writable_tag(self) -> WritableTag<'static>
Takes ownership of the custom tag and provides a value that is used for writing. Read more
impl Copy for NoCustomTag
impl StructuralPartialEq for NoCustomTag
Auto Trait Implementations§
impl Freeze for NoCustomTag
impl RefUnwindSafe for NoCustomTag
impl Send for NoCustomTag
impl Sync for NoCustomTag
impl Unpin for NoCustomTag
impl UnsafeUnpin for NoCustomTag
impl UnwindSafe for NoCustomTag
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<'a, Custom> IntoInnerTag<'a> for Customwhere
Custom: WritableCustomTag<'a>,
impl<'a, Custom> IntoInnerTag<'a> for Customwhere
Custom: WritableCustomTag<'a>,
Source§fn into_inner(self) -> TagInner<'a>
fn into_inner(self) -> TagInner<'a>
Consume
self and provide TagInner.