#[derive(Debug, Copy, Clone)]
#[repr(C)]
pub struct FrameRateRange {
pub minium: f32,
pub maximum: f32,
pub preferred: f32,
}
impl Default for FrameRateRange {
fn default() -> Self {
unsafe { CAFrameRateRangeDefault }
}
}
impl PartialEq<Self> for FrameRateRange {
#[inline]
fn eq(&self, other: &Self) -> bool {
unsafe { CAFrameRateRangeIsEqualToRange(*self, *other) }
}
}
unsafe extern "C-unwind" {
static CAFrameRateRangeDefault: FrameRateRange;
fn CAFrameRateRangeIsEqualToRange(range: FrameRateRange, other: FrameRateRange) -> bool;
}