#[repr(C, align(4))]pub struct CMTime {
pub value: CMTimeValue,
pub timescale: CMTimeScale,
pub flags: CMTimeFlags,
pub epoch: CMTimeEpoch,
}Fields§
§value: CMTimeValue§timescale: CMTimeScale§flags: CMTimeFlags§epoch: CMTimeEpochImplementations§
Source§impl CMTime
impl CMTime
pub fn make(value: CMTimeValue, timescale: CMTimeScale) -> Self
pub fn make_with_epoch( value: CMTimeValue, timescale: CMTimeScale, epoch: CMTimeEpoch, ) -> Self
pub fn make_with_seconds(seconds: f64, preferred_time_scale: i32) -> Self
pub fn get_seconds(&self) -> f64
pub fn convert_scale( &self, new_timescale: CMTimeScale, method: CMTimeRoundingMethod, ) -> Self
pub fn add(&self, time: CMTime) -> Self
pub fn subtract(&self, time: CMTime) -> Self
pub fn multiply(&self, multiplier: i32) -> Self
pub fn multiply_by_float64(&self, multiplier: f64) -> Self
pub fn multiply_by_ratio(&self, multiplier: i32, divisor: i32) -> Self
pub fn compare(&self, time: CMTime) -> i32
pub fn minimum(&self, time: CMTime) -> Self
pub fn maximum(&self, time: CMTime) -> Self
pub fn absolute_value(&self) -> Self
pub fn copy_as_dictionary(&self) -> Option<CFDictionary<CFString, CFNumber>>
pub fn make_from_dictionary( dictionary_representation: &CFDictionary<CFString, CFNumber>, ) -> Self
pub fn copy_description(&self) -> Option<CFString>
pub fn show(&self)
Trait Implementations§
impl Copy for CMTime
impl StructuralPartialEq for CMTime
Auto Trait Implementations§
impl Freeze for CMTime
impl RefUnwindSafe for CMTime
impl Send for CMTime
impl Sync for CMTime
impl Unpin for CMTime
impl UnwindSafe for CMTime
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.