#[repr(C, align(4))]pub struct CMTimeRange {
pub start: CMTime,
pub duration: CMTime,
}Fields§
§start: CMTime§duration: CMTimeImplementations§
Source§impl CMTimeRange
impl CMTimeRange
pub fn make(start: CMTime, duration: CMTime) -> Self
pub fn get_union(&self, other: CMTimeRange) -> CMTimeRange
pub fn get_intersection(&self, other: CMTimeRange) -> CMTimeRange
pub fn equal(&self, other: CMTimeRange) -> bool
pub fn contains_time(&self, time: CMTime) -> bool
pub fn contains_time_range(&self, other: CMTimeRange) -> bool
pub fn get_end(&self) -> CMTime
pub fn copy_as_dictionary( &self, ) -> Option<CFDictionary<CFString, CFDictionary<CFString, CFNumber>>>
pub fn make_from_dictionary( dict: &CFDictionary<CFString, CFDictionary<CFString, CFNumber>>, ) -> Self
pub fn copy_description(&self) -> Option<CFString>
pub fn show(&self)
Trait Implementations§
Source§impl Clone for CMTimeRange
impl Clone for CMTimeRange
Source§fn clone(&self) -> CMTimeRange
fn clone(&self) -> CMTimeRange
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 CMTimeRange
impl Debug for CMTimeRange
Source§impl Default for CMTimeRange
impl Default for CMTimeRange
Source§fn default() -> CMTimeRange
fn default() -> CMTimeRange
Returns the “default value” for a type. Read more
Source§impl PartialEq for CMTimeRange
impl PartialEq for CMTimeRange
impl Copy for CMTimeRange
Auto Trait Implementations§
impl Freeze for CMTimeRange
impl RefUnwindSafe for CMTimeRange
impl Send for CMTimeRange
impl Sync for CMTimeRange
impl Unpin for CMTimeRange
impl UnwindSafe for CMTimeRange
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