#[non_exhaustive]pub enum StereoMode {
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.
Both
draw to both stereo buffers
Left
draw only to the left stereo buffer
Right
draw only to the left stereo buffer
Trait Implementations§
Source§impl Clone for StereoMode
impl Clone for StereoMode
Source§fn clone(&self) -> StereoMode
fn clone(&self) -> StereoMode
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 StereoMode
impl Debug for StereoMode
Source§impl Display for StereoMode
impl Display for StereoMode
Source§impl<'a> FromValue<'a> for StereoMode
impl<'a> FromValue<'a> for StereoMode
Source§unsafe fn from_value(value: &Value) -> Self
unsafe fn from_value(value: &Value) -> Self
Safety Read more
Source§impl<'a> FromValueOptional<'a> for StereoMode
impl<'a> FromValueOptional<'a> for StereoMode
Source§impl Hash for StereoMode
impl Hash for StereoMode
Source§impl Ord for StereoMode
impl Ord for StereoMode
Source§fn cmp(&self, other: &StereoMode) -> Ordering
fn cmp(&self, other: &StereoMode) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for StereoMode
impl PartialEq for StereoMode
Source§impl PartialOrd for StereoMode
impl PartialOrd for StereoMode
Source§impl SetValue for StereoMode
impl SetValue for StereoMode
Source§impl StaticType for StereoMode
impl StaticType for StereoMode
Source§fn static_type() -> Type
fn static_type() -> Type
Returns the type identifier of
Self
.impl Copy for StereoMode
impl Eq for StereoMode
impl StructuralPartialEq for StereoMode
Auto Trait Implementations§
impl Freeze for StereoMode
impl RefUnwindSafe for StereoMode
impl Send for StereoMode
impl Sync for StereoMode
impl Unpin for StereoMode
impl UnwindSafe for StereoMode
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> ToSendValue for T
impl<T> ToSendValue for T
Source§fn to_send_value(&self) -> SendValue
fn to_send_value(&self) -> SendValue
Returns a
SendValue
clone of self
.