#[repr(C)]pub struct TrakFlags(/* private fields */);
Implementations§
Source§impl TrakFlags
impl TrakFlags
pub const ENABLED: u32 = 1u32
pub const IN_MOVIE: u32 = 2u32
pub const IN_PREVIEW: u32 = 4u32
pub const SIZE_IS_ASPECT_RATIO: u32 = 8u32
pub fn raw(&self) -> u32
pub fn new<T: Into<u32>>(bits: T) -> TrakFlags
pub unsafe fn at_addr<'a>(addr: usize) -> &'a TrakFlags
pub unsafe fn at_addr_mut<'a>(addr: usize) -> &'a mut TrakFlags
pub unsafe fn at_ref<'a, T>(r: &T) -> &'a TrakFlags
pub unsafe fn at_ref_mut<'a, T>(r: &mut T) -> &'a mut TrakFlags
pub fn with_enabled() -> TrakFlags
pub fn with_in_movie() -> TrakFlags
pub fn with_in_preview() -> TrakFlags
pub fn with_size_is_aspect_ratio() -> TrakFlags
pub fn enabled(&self) -> bool
pub fn extract_enabled(&self) -> TrakFlags
pub fn set_enabled(&mut self)
pub fn unset_enabled(&mut self)
pub fn toggle_enabled(&mut self)
pub fn in_movie(&self) -> bool
pub fn extract_in_movie(&self) -> TrakFlags
pub fn set_in_movie(&mut self)
pub fn unset_in_movie(&mut self)
pub fn toggle_in_movie(&mut self)
pub fn in_preview(&self) -> bool
pub fn extract_in_preview(&self) -> TrakFlags
pub fn set_in_preview(&mut self)
pub fn unset_in_preview(&mut self)
pub fn toggle_in_preview(&mut self)
pub fn size_is_aspect_ratio(&self) -> bool
pub fn extract_size_is_aspect_ratio(&self) -> TrakFlags
pub fn set_size_is_aspect_ratio(&mut self)
pub fn unset_size_is_aspect_ratio(&mut self)
pub fn toggle_size_is_aspect_ratio(&mut self)
Trait Implementations§
Source§impl<T: Into<u32>> AddAssign<T> for TrakFlags
impl<T: Into<u32>> AddAssign<T> for TrakFlags
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 TrakFlags
impl<T: Into<u32>> BitAndAssign<T> for TrakFlags
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 TrakFlags
impl<T: Into<u32>> BitOrAssign<T> for TrakFlags
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 TrakFlags
impl<T: Into<u32>> BitXorAssign<T> for TrakFlags
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 TrakFlags
impl<T: Into<u32>> DivAssign<T> for TrakFlags
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 TrakFlags
impl<T: Into<u32>> MulAssign<T> for TrakFlags
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 TrakFlags
impl<T: Into<u32>> ShlAssign<T> for TrakFlags
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 TrakFlags
impl<T: Into<u32>> ShrAssign<T> for TrakFlags
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 TrakFlags
impl<T: Into<u32>> SubAssign<T> for TrakFlags
Source§fn sub_assign(&mut self, other: T)
fn sub_assign(&mut self, other: T)
Performs the
-=
operation. Read moreimpl Copy for TrakFlags
impl Eq for TrakFlags
Auto Trait Implementations§
impl Freeze for TrakFlags
impl RefUnwindSafe for TrakFlags
impl Send for TrakFlags
impl Sync for TrakFlags
impl Unpin for TrakFlags
impl UnwindSafe for TrakFlags
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.