#[repr(transparent)]pub struct CAClockTimeFormat(pub u32);
Expand description
The various units in which a clock can represent and report time.
Absolute host time, as returned by
mach_absolute_time()
.
Absolute audio samples, as a Float64. Available when the internal timebase is an audio device (or audio output unit). The units are in arbitrary sample numbers, corresponding to the audio device’s current time, and at the device’s current sample rate.
Musical beats, as a Float64. This is a position on the clock’s timeline.
Seconds, as a Float64. This is a position on the clock’s timeline.
Seconds, as a Float64. This is the same as kCAClockTimeFormat_Seconds, except that the clock’s SMPTE offset has been applied.
SMPTETime structure.
See also Apple’s documentation
Tuple Fields§
§0: u32
Implementations§
Trait Implementations§
Source§impl Clone for CAClockTimeFormat
impl Clone for CAClockTimeFormat
Source§fn clone(&self) -> CAClockTimeFormat
fn clone(&self) -> CAClockTimeFormat
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 Debug for CAClockTimeFormat
impl Debug for CAClockTimeFormat
Source§impl Encode for CAClockTimeFormat
impl Encode for CAClockTimeFormat
Source§impl Hash for CAClockTimeFormat
impl Hash for CAClockTimeFormat
Source§impl Ord for CAClockTimeFormat
impl Ord for CAClockTimeFormat
Source§fn cmp(&self, other: &CAClockTimeFormat) -> Ordering
fn cmp(&self, other: &CAClockTimeFormat) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for CAClockTimeFormat
impl PartialEq for CAClockTimeFormat
Source§impl PartialOrd for CAClockTimeFormat
impl PartialOrd for CAClockTimeFormat
Source§impl RefEncode for CAClockTimeFormat
impl RefEncode for CAClockTimeFormat
Source§const ENCODING_REF: Encoding
const ENCODING_REF: Encoding
The Objective-C type-encoding for a reference of this type. Read more
impl Copy for CAClockTimeFormat
impl Eq for CAClockTimeFormat
impl StructuralPartialEq for CAClockTimeFormat
Auto Trait Implementations§
impl Freeze for CAClockTimeFormat
impl RefUnwindSafe for CAClockTimeFormat
impl Send for CAClockTimeFormat
impl Sync for CAClockTimeFormat
impl Unpin for CAClockTimeFormat
impl UnwindSafe for CAClockTimeFormat
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<T> EncodeArgument for Twhere
T: Encode,
impl<T> EncodeArgument for Twhere
T: Encode,
Source§const ENCODING_ARGUMENT: Encoding = T::ENCODING
const ENCODING_ARGUMENT: Encoding = T::ENCODING
The Objective-C type-encoding for this type.
Source§impl<T> EncodeReturn for Twhere
T: Encode,
impl<T> EncodeReturn for Twhere
T: Encode,
Source§const ENCODING_RETURN: Encoding = T::ENCODING
const ENCODING_RETURN: Encoding = T::ENCODING
The Objective-C type-encoding for this type.