Enum ar_drivers::DisplayMode
source · pub enum DisplayMode {
SameOnBoth,
Stereo,
HalfSBS,
HighRefreshRate,
HighRefreshRateSBS,
}
Expand description
Display mode used by ARGlasses::set_display_mode
Variants§
SameOnBoth
Picture should be same for both eyes (simple full HD mode)
Stereo
Set display to 3840*1080 or 3840x1200, where the left half is the left eye, the right half is the right eye
HalfSBS
Set display to half-SBS mode, which presents itself as 1920*1080 resolution, but actually scales down everything to 960x540,then upscales to 3840x1080
HighRefreshRate
Set display to mirrored high refresh rate mode (typically 120Hz)
HighRefreshRateSBS
Set display to high refresh rate SBS mode
Trait Implementations§
source§impl Clone for DisplayMode
impl Clone for DisplayMode
source§fn clone(&self) -> DisplayMode
fn clone(&self) -> DisplayMode
Returns a copy 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 DisplayMode
impl Debug for DisplayMode
source§impl PartialEq for DisplayMode
impl PartialEq for DisplayMode
source§fn eq(&self, other: &DisplayMode) -> bool
fn eq(&self, other: &DisplayMode) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for DisplayMode
impl Eq for DisplayMode
impl StructuralEq for DisplayMode
impl StructuralPartialEq for DisplayMode
Auto Trait Implementations§
impl RefUnwindSafe for DisplayMode
impl Send for DisplayMode
impl Sync for DisplayMode
impl Unpin for DisplayMode
impl UnwindSafe for DisplayMode
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
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self
from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self
is actually part of its subset T
(and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset
but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self
to the equivalent element of its superset.