#[repr(C)]pub struct TrunFlags(/* private fields */);
Implementations§
Source§impl TrunFlags
impl TrunFlags
pub const HAS_DATA_OFFSET: u32 = 1u32
pub const HAS_FIRST_SAMPLE_FLAGS: u32 = 4u32
pub const HAS_SAMPLE_DURATION: u32 = 256u32
pub const HAS_SAMPLE_SIZE: u32 = 512u32
pub const HAS_SAMPLE_FLAGS: u32 = 1_024u32
pub const HAS_SAMPLE_COMPOSITION: u32 = 2_048u32
pub fn raw(&self) -> u32
pub fn new<T: Into<u32>>(bits: T) -> TrunFlags
pub unsafe fn at_addr<'a>(addr: usize) -> &'a TrunFlags
pub unsafe fn at_addr_mut<'a>(addr: usize) -> &'a mut TrunFlags
pub unsafe fn at_ref<'a, T>(r: &T) -> &'a TrunFlags
pub unsafe fn at_ref_mut<'a, T>(r: &mut T) -> &'a mut TrunFlags
pub fn with_has_data_offset() -> TrunFlags
pub fn with_has_first_sample_flags() -> TrunFlags
pub fn with_has_sample_duration() -> TrunFlags
pub fn with_has_sample_size() -> TrunFlags
pub fn with_has_sample_flags() -> TrunFlags
pub fn with_has_sample_composition() -> TrunFlags
pub fn has_data_offset(&self) -> bool
pub fn extract_has_data_offset(&self) -> TrunFlags
pub fn set_has_data_offset(&mut self)
pub fn unset_has_data_offset(&mut self)
pub fn toggle_has_data_offset(&mut self)
pub fn has_first_sample_flags(&self) -> bool
pub fn extract_has_first_sample_flags(&self) -> TrunFlags
pub fn set_has_first_sample_flags(&mut self)
pub fn unset_has_first_sample_flags(&mut self)
pub fn toggle_has_first_sample_flags(&mut self)
pub fn has_sample_duration(&self) -> bool
pub fn extract_has_sample_duration(&self) -> TrunFlags
pub fn set_has_sample_duration(&mut self)
pub fn unset_has_sample_duration(&mut self)
pub fn toggle_has_sample_duration(&mut self)
pub fn has_sample_size(&self) -> bool
pub fn extract_has_sample_size(&self) -> TrunFlags
pub fn set_has_sample_size(&mut self)
pub fn unset_has_sample_size(&mut self)
pub fn toggle_has_sample_size(&mut self)
pub fn has_sample_flags(&self) -> bool
pub fn extract_has_sample_flags(&self) -> TrunFlags
pub fn set_has_sample_flags(&mut self)
pub fn unset_has_sample_flags(&mut self)
pub fn toggle_has_sample_flags(&mut self)
pub fn has_sample_composition(&self) -> bool
pub fn extract_has_sample_composition(&self) -> TrunFlags
pub fn set_has_sample_composition(&mut self)
pub fn unset_has_sample_composition(&mut self)
pub fn toggle_has_sample_composition(&mut self)
Trait Implementations§
Source§impl<T: Into<u32>> AddAssign<T> for TrunFlags
impl<T: Into<u32>> AddAssign<T> for TrunFlags
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 TrunFlags
impl<T: Into<u32>> BitAndAssign<T> for TrunFlags
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 TrunFlags
impl<T: Into<u32>> BitOrAssign<T> for TrunFlags
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 TrunFlags
impl<T: Into<u32>> BitXorAssign<T> for TrunFlags
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 TrunFlags
impl<T: Into<u32>> DivAssign<T> for TrunFlags
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 TrunFlags
impl<T: Into<u32>> MulAssign<T> for TrunFlags
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 TrunFlags
impl<T: Into<u32>> ShlAssign<T> for TrunFlags
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 TrunFlags
impl<T: Into<u32>> ShrAssign<T> for TrunFlags
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 TrunFlags
impl<T: Into<u32>> SubAssign<T> for TrunFlags
Source§fn sub_assign(&mut self, other: T)
fn sub_assign(&mut self, other: T)
Performs the
-=
operation. Read moreimpl Copy for TrunFlags
impl Eq for TrunFlags
Auto Trait Implementations§
impl Freeze for TrunFlags
impl RefUnwindSafe for TrunFlags
impl Send for TrunFlags
impl Sync for TrunFlags
impl Unpin for TrunFlags
impl UnwindSafe for TrunFlags
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.