#[non_exhaustive]pub struct SampleFlags {
pub is_sync: bool,
}Expand description
Per-sample flags (ISO/IEC 14496-12:2015 §8.8.3.1 sample_flags, reduced to
the one bit this crate’s IR tracks today).
#[non_exhaustive]: a struct, not a bare bool, so a future flag (e.g.
is_non_displayable/padding) is additive, not a Sample field-list
break.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.is_sync: boolWhether this is a sync sample (random-access point / keyframe).
Implementations§
Source§impl SampleFlags
impl SampleFlags
Sourcepub const SYNC: SampleFlags
pub const SYNC: SampleFlags
A sync sample (random-access point / keyframe).
Sourcepub const NON_SYNC: SampleFlags
pub const NON_SYNC: SampleFlags
A non-sync sample.
Trait Implementations§
Source§impl Clone for SampleFlags
impl Clone for SampleFlags
Source§fn clone(&self) -> SampleFlags
fn clone(&self) -> SampleFlags
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 moreimpl Copy for SampleFlags
Source§impl Debug for SampleFlags
impl Debug for SampleFlags
impl Eq for SampleFlags
Source§impl PartialEq for SampleFlags
impl PartialEq for SampleFlags
impl StructuralPartialEq for SampleFlags
Auto Trait Implementations§
impl Freeze for SampleFlags
impl RefUnwindSafe for SampleFlags
impl Send for SampleFlags
impl Sync for SampleFlags
impl Unpin for SampleFlags
impl UnsafeUnpin for SampleFlags
impl UnwindSafe for SampleFlags
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