pub struct CMClockOrTimebase(/* private fields */);Implementations§
Source§impl CMClockOrTimebase
impl CMClockOrTimebase
pub fn as_concrete_TypeRef(&self) -> CMClockOrTimebaseRef
pub fn as_CFType(&self) -> CFType
pub fn as_CFTypeRef(&self) -> CFTypeRef
pub fn into_CFType(self) -> CFTypewhere
Self: Sized,
pub unsafe fn wrap_under_create_rule(reference: CMClockOrTimebaseRef) -> Self
pub unsafe fn wrap_under_get_rule(reference: CMClockOrTimebaseRef) -> Self
Source§impl CMClockOrTimebase
impl CMClockOrTimebase
pub fn get_relative_rate(&self, relative_to: &CMClockOrTimebase) -> f64
pub fn get_relative_rate_and_anchor_time( &self, relative_to: &CMClockOrTimebase, ) -> Result<(f64, CMTime, CMTime), OSStatus>
pub fn convert_time( &self, time: CMTime, from: &CMClockOrTimebase, to: &CMClockOrTimebase, ) -> CMTime
pub fn might_drift(&self, other: &CMClockOrTimebase) -> bool
pub fn get_time(&self) -> CMTime
Trait Implementations§
Source§impl Clone for CMClockOrTimebase
impl Clone for CMClockOrTimebase
Source§impl Debug for CMClockOrTimebase
impl Debug for CMClockOrTimebase
Source§impl Drop for CMClockOrTimebase
impl Drop for CMClockOrTimebase
Source§impl PartialEq for CMClockOrTimebase
impl PartialEq for CMClockOrTimebase
impl Eq for CMClockOrTimebase
Auto Trait Implementations§
impl Freeze for CMClockOrTimebase
impl RefUnwindSafe for CMClockOrTimebase
impl !Send for CMClockOrTimebase
impl !Sync for CMClockOrTimebase
impl Unpin for CMClockOrTimebase
impl UnwindSafe for CMClockOrTimebase
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