Enum godot::builtin::ProjectionEye
#[repr(C)]pub enum ProjectionEye {
LEFT = 1,
RIGHT = 2,
}
Expand description
The eye to create a projection for, when creating a projection adjusted for head-mounted displays.
Variants§
Implementations§
§impl ProjectionEye
impl ProjectionEye
pub const Left: ProjectionEye = Self::LEFT
👎Deprecated: Renamed to
ProjectionEye::LEFT
pub const Right: ProjectionEye = Self::RIGHT
👎Deprecated: Renamed to
ProjectionEye::RIGHT
§impl ProjectionEye
impl ProjectionEye
pub fn try_from_ord(ord: i64) -> Option<ProjectionEye>
pub fn try_from_ord(ord: i64) -> Option<ProjectionEye>
Convert from numbers 1
and 2
.
Trait Implementations§
§impl Clone for ProjectionEye
impl Clone for ProjectionEye
§fn clone(&self) -> ProjectionEye
fn clone(&self) -> ProjectionEye
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 more§impl Debug for ProjectionEye
impl Debug for ProjectionEye
§impl Hash for ProjectionEye
impl Hash for ProjectionEye
§impl PartialEq for ProjectionEye
impl PartialEq for ProjectionEye
§fn eq(&self, other: &ProjectionEye) -> bool
fn eq(&self, other: &ProjectionEye) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for ProjectionEye
impl Eq for ProjectionEye
impl StructuralPartialEq for ProjectionEye
Auto Trait Implementations§
impl Freeze for ProjectionEye
impl RefUnwindSafe for ProjectionEye
impl Send for ProjectionEye
impl Sync for ProjectionEye
impl Unpin for ProjectionEye
impl UnwindSafe for ProjectionEye
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)source§impl<T> CloneToUninit for Twhere
T: Copy,
impl<T> CloneToUninit for Twhere
T: Copy,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)