pub struct VrefreshRange {
pub min_hz: i32,
pub max_hz: i32,
}Expand description
The vertical refresh range the panel states it accepts.
From the EDID Display Range Limits descriptor, tag 0xFD. On a
variable-refresh panel this is its VRR window; on a fixed-rate one the two
are equal. Absent when the EDID carries no range descriptor, or one with a
zero maximum or a minimum above its maximum, which is not the same as a
panel with no range – it is a panel that did not say.
Fields§
§min_hz: i32Lowest refresh in Hz.
max_hz: i32Highest refresh in Hz.
Implementations§
Source§impl VrefreshRange
impl VrefreshRange
Sourcepub const fn is_variable(&self) -> bool
pub const fn is_variable(&self) -> bool
Whether the panel accepts more than one rate.
The question a compositor is really asking before it offers variable-refresh presentation.
Trait Implementations§
Source§impl Clone for VrefreshRange
impl Clone for VrefreshRange
impl Copy for VrefreshRange
Source§impl Debug for VrefreshRange
impl Debug for VrefreshRange
impl Eq for VrefreshRange
Source§impl PartialEq for VrefreshRange
impl PartialEq for VrefreshRange
impl StructuralPartialEq for VrefreshRange
Auto Trait Implementations§
impl Freeze for VrefreshRange
impl RefUnwindSafe for VrefreshRange
impl Send for VrefreshRange
impl Sync for VrefreshRange
impl Unpin for VrefreshRange
impl UnsafeUnpin for VrefreshRange
impl UnwindSafe for VrefreshRange
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