#[repr(C)]pub struct TfhdFlags(/* private fields */);
Implementations§
Source§impl TfhdFlags
impl TfhdFlags
pub const HAS_BASE_DATA_OFFSET: u32 = 1u32
pub const HAS_SAMPLE_DESCRIPTION_INDEX: u32 = 2u32
pub const HAS_DEFAULT_SAMPLE_DURATION: u32 = 8u32
pub const HAS_DEFAULT_SAMPLE_SIZE: u32 = 16u32
pub const HAS_DEFAULT_SAMPLE_FLAGS: u32 = 32u32
pub const DURATION_IS_EMPTY: u32 = 65_536u32
pub const DEFAULT_BASE_IS_MOOF: u32 = 131_072u32
pub fn raw(&self) -> u32
pub fn new<T: Into<u32>>(bits: T) -> TfhdFlags
pub unsafe fn at_addr<'a>(addr: usize) -> &'a TfhdFlags
pub unsafe fn at_addr_mut<'a>(addr: usize) -> &'a mut TfhdFlags
pub unsafe fn at_ref<'a, T>(r: &T) -> &'a TfhdFlags
pub unsafe fn at_ref_mut<'a, T>(r: &mut T) -> &'a mut TfhdFlags
pub fn with_has_base_data_offset() -> TfhdFlags
pub fn with_has_sample_description_index() -> TfhdFlags
pub fn with_has_default_sample_duration() -> TfhdFlags
pub fn with_has_default_sample_size() -> TfhdFlags
pub fn with_has_default_sample_flags() -> TfhdFlags
pub fn with_duration_is_empty() -> TfhdFlags
pub fn with_default_base_is_moof() -> TfhdFlags
pub fn has_base_data_offset(&self) -> bool
pub fn extract_has_base_data_offset(&self) -> TfhdFlags
pub fn set_has_base_data_offset(&mut self)
pub fn unset_has_base_data_offset(&mut self)
pub fn toggle_has_base_data_offset(&mut self)
pub fn has_sample_description_index(&self) -> bool
pub fn extract_has_sample_description_index(&self) -> TfhdFlags
pub fn set_has_sample_description_index(&mut self)
pub fn unset_has_sample_description_index(&mut self)
pub fn toggle_has_sample_description_index(&mut self)
pub fn has_default_sample_duration(&self) -> bool
pub fn extract_has_default_sample_duration(&self) -> TfhdFlags
pub fn set_has_default_sample_duration(&mut self)
pub fn unset_has_default_sample_duration(&mut self)
pub fn toggle_has_default_sample_duration(&mut self)
pub fn has_default_sample_size(&self) -> bool
pub fn extract_has_default_sample_size(&self) -> TfhdFlags
pub fn set_has_default_sample_size(&mut self)
pub fn unset_has_default_sample_size(&mut self)
pub fn toggle_has_default_sample_size(&mut self)
pub fn has_default_sample_flags(&self) -> bool
pub fn extract_has_default_sample_flags(&self) -> TfhdFlags
pub fn set_has_default_sample_flags(&mut self)
pub fn unset_has_default_sample_flags(&mut self)
pub fn toggle_has_default_sample_flags(&mut self)
pub fn duration_is_empty(&self) -> bool
pub fn extract_duration_is_empty(&self) -> TfhdFlags
pub fn set_duration_is_empty(&mut self)
pub fn unset_duration_is_empty(&mut self)
pub fn toggle_duration_is_empty(&mut self)
pub fn default_base_is_moof(&self) -> bool
pub fn extract_default_base_is_moof(&self) -> TfhdFlags
pub fn set_default_base_is_moof(&mut self)
pub fn unset_default_base_is_moof(&mut self)
pub fn toggle_default_base_is_moof(&mut self)
Trait Implementations§
Source§impl<T: Into<u32>> AddAssign<T> for TfhdFlags
impl<T: Into<u32>> AddAssign<T> for TfhdFlags
Source§fn add_assign(&mut self, other: T)
fn add_assign(&mut self, other: T)
Performs the
+=
operation. Read moreSource§impl<T: Into<u32>> BitAndAssign<T> for TfhdFlags
impl<T: Into<u32>> BitAndAssign<T> for TfhdFlags
Source§fn bitand_assign(&mut self, other: T)
fn bitand_assign(&mut self, other: T)
Performs the
&=
operation. Read moreSource§impl<T: Into<u32>> BitOrAssign<T> for TfhdFlags
impl<T: Into<u32>> BitOrAssign<T> for TfhdFlags
Source§fn bitor_assign(&mut self, other: T)
fn bitor_assign(&mut self, other: T)
Performs the
|=
operation. Read moreSource§impl<T: Into<u32>> BitXorAssign<T> for TfhdFlags
impl<T: Into<u32>> BitXorAssign<T> for TfhdFlags
Source§fn bitxor_assign(&mut self, other: T)
fn bitxor_assign(&mut self, other: T)
Performs the
^=
operation. Read moreSource§impl<T: Into<u32>> DivAssign<T> for TfhdFlags
impl<T: Into<u32>> DivAssign<T> for TfhdFlags
Source§fn div_assign(&mut self, other: T)
fn div_assign(&mut self, other: T)
Performs the
/=
operation. Read moreSource§impl<T: Into<u32>> MulAssign<T> for TfhdFlags
impl<T: Into<u32>> MulAssign<T> for TfhdFlags
Source§fn mul_assign(&mut self, other: T)
fn mul_assign(&mut self, other: T)
Performs the
*=
operation. Read moreSource§impl<T: Into<u32>> ShlAssign<T> for TfhdFlags
impl<T: Into<u32>> ShlAssign<T> for TfhdFlags
Source§fn shl_assign(&mut self, other: T)
fn shl_assign(&mut self, other: T)
Performs the
<<=
operation. Read moreSource§impl<T: Into<u32>> ShrAssign<T> for TfhdFlags
impl<T: Into<u32>> ShrAssign<T> for TfhdFlags
Source§fn shr_assign(&mut self, other: T)
fn shr_assign(&mut self, other: T)
Performs the
>>=
operation. Read moreSource§impl<T: Into<u32>> SubAssign<T> for TfhdFlags
impl<T: Into<u32>> SubAssign<T> for TfhdFlags
Source§fn sub_assign(&mut self, other: T)
fn sub_assign(&mut self, other: T)
Performs the
-=
operation. Read moreimpl Copy for TfhdFlags
impl Eq for TfhdFlags
Auto Trait Implementations§
impl Freeze for TfhdFlags
impl RefUnwindSafe for TfhdFlags
impl Send for TfhdFlags
impl Sync for TfhdFlags
impl Unpin for TfhdFlags
impl UnwindSafe for TfhdFlags
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> CheckedAs for T
impl<T> CheckedAs for T
Source§fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
fn checked_as<Dst>(self) -> Option<Dst>where
T: CheckedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
impl<Src, Dst> CheckedCastFrom<Src> for Dstwhere
Src: CheckedCast<Dst>,
Source§fn checked_cast_from(src: Src) -> Option<Dst>
fn checked_cast_from(src: Src) -> Option<Dst>
Casts the value.
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
impl<Src, Dst> LosslessTryInto<Dst> for Srcwhere
Dst: LosslessTryFrom<Src>,
Source§fn lossless_try_into(self) -> Option<Dst>
fn lossless_try_into(self) -> Option<Dst>
Performs the conversion.
Source§impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
impl<Src, Dst> LossyInto<Dst> for Srcwhere
Dst: LossyFrom<Src>,
Source§fn lossy_into(self) -> Dst
fn lossy_into(self) -> Dst
Performs the conversion.
Source§impl<T> OverflowingAs for T
impl<T> OverflowingAs for T
Source§fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
fn overflowing_as<Dst>(self) -> (Dst, bool)where
T: OverflowingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
impl<Src, Dst> OverflowingCastFrom<Src> for Dstwhere
Src: OverflowingCast<Dst>,
Source§fn overflowing_cast_from(src: Src) -> (Dst, bool)
fn overflowing_cast_from(src: Src) -> (Dst, bool)
Casts the value.
Source§impl<T> SaturatingAs for T
impl<T> SaturatingAs for T
Source§fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
fn saturating_as<Dst>(self) -> Dstwhere
T: SaturatingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
impl<Src, Dst> SaturatingCastFrom<Src> for Dstwhere
Src: SaturatingCast<Dst>,
Source§fn saturating_cast_from(src: Src) -> Dst
fn saturating_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> UnwrappedAs for T
impl<T> UnwrappedAs for T
Source§fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
fn unwrapped_as<Dst>(self) -> Dstwhere
T: UnwrappedCast<Dst>,
Casts the value.
Source§impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
impl<Src, Dst> UnwrappedCastFrom<Src> for Dstwhere
Src: UnwrappedCast<Dst>,
Source§fn unwrapped_cast_from(src: Src) -> Dst
fn unwrapped_cast_from(src: Src) -> Dst
Casts the value.
Source§impl<T> WrappingAs for T
impl<T> WrappingAs for T
Source§fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
fn wrapping_as<Dst>(self) -> Dstwhere
T: WrappingCast<Dst>,
Casts the value.
Source§impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
impl<Src, Dst> WrappingCastFrom<Src> for Dstwhere
Src: WrappingCast<Dst>,
Source§fn wrapping_cast_from(src: Src) -> Dst
fn wrapping_cast_from(src: Src) -> Dst
Casts the value.