#[non_exhaustive]
pub enum StereoMode {
None,
Both,
Left,
Right,
}
Expand description
Represents how draw should affect the two buffers of a stereo framebuffer.
See Framebuffer::set_stereo_mode
.
Variants (Non-exhaustive)
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
None
Both
draw to both stereo buffers
Left
draw only to the left stereo buffer
Right
draw only to the left stereo buffer
Trait Implementations
sourceimpl Clone for StereoMode
impl Clone for StereoMode
sourcefn clone(&self) -> StereoMode
fn clone(&self) -> StereoMode
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for StereoMode
impl Debug for StereoMode
sourceimpl Default for StereoMode
impl Default for StereoMode
sourceimpl Display for StereoMode
impl Display for StereoMode
sourceimpl Hash for StereoMode
impl Hash for StereoMode
sourceimpl Ord for StereoMode
impl Ord for StereoMode
sourceimpl PartialEq<StereoMode> for StereoMode
impl PartialEq<StereoMode> for StereoMode
sourceimpl PartialOrd<StereoMode> for StereoMode
impl PartialOrd<StereoMode> for StereoMode
sourcefn partial_cmp(&self, other: &StereoMode) -> Option<Ordering>
fn partial_cmp(&self, other: &StereoMode) -> Option<Ordering>
This method returns an ordering between self
and other
values if one exists. Read more
1.0.0 · sourcefn lt(&self, other: &Rhs) -> bool
fn lt(&self, other: &Rhs) -> bool
This method tests less than (for self
and other
) and is used by the <
operator. Read more
1.0.0 · sourcefn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
impl Copy for StereoMode
impl Eq for StereoMode
impl StructuralEq for StereoMode
impl StructuralPartialEq for StereoMode
Auto Trait Implementations
impl RefUnwindSafe for StereoMode
impl Send for StereoMode
impl Sync for StereoMode
impl Unpin for StereoMode
impl UnwindSafe for StereoMode
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
impl<T> Clamp<T> for T where
T: PartialOrd<T>,
impl<T> Clamp<T> for T where
T: PartialOrd<T>,
fn clamped(self, min: T, max: T) -> T
sourceimpl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
impl<Fr, To> IntoColor<To> for Fr where
To: FromColor<Fr>,
sourcefn into_color(self) -> To
fn into_color(self) -> To
Convert into color
impl<T> Pointable for T
impl<T> Pointable for T
impl<T> SetParameter for T
impl<T> SetParameter for T
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
Sets value
as a parameter of self
.