Enum godot::prelude::Vector4Axis
#[repr(i32)]pub enum Vector4Axis {
X = 0,
Y = 1,
Z = 2,
W = 3,
}
Expand description
Enumerates the axes in a Vector4
.
Variants§
Trait Implementations§
§impl Clone for Vector4Axis
impl Clone for Vector4Axis
§fn clone(&self) -> Vector4Axis
fn clone(&self) -> Vector4Axis
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 Vector4Axis
impl Debug for Vector4Axis
§impl EngineEnum for Vector4Axis
impl EngineEnum for Vector4Axis
§impl FromGodot for Vector4Axis
impl FromGodot for Vector4Axis
§fn try_from_godot(
via: <Vector4Axis as GodotConvert>::Via
) -> Result<Vector4Axis, ConvertError>
fn try_from_godot( via: <Vector4Axis as GodotConvert>::Via ) -> Result<Vector4Axis, ConvertError>
Performs the conversion.
§fn from_godot(via: Self::Via) -> Self
fn from_godot(via: Self::Via) -> Self
⚠️ Performs the conversion. Read more
§fn try_from_variant(variant: &Variant) -> Result<Self, ConvertError>
fn try_from_variant(variant: &Variant) -> Result<Self, ConvertError>
Performs the conversion from a
Variant
.§fn from_variant(variant: &Variant) -> Self
fn from_variant(variant: &Variant) -> Self
§impl GodotConvert for Vector4Axis
impl GodotConvert for Vector4Axis
§impl Index<Vector4Axis> for Vector4
impl Index<Vector4Axis> for Vector4
§impl Index<Vector4Axis> for Vector4i
impl Index<Vector4Axis> for Vector4i
§impl IndexMut<Vector4Axis> for Vector4
impl IndexMut<Vector4Axis> for Vector4
§fn index_mut(&mut self, axis: Vector4Axis) -> &mut f32
fn index_mut(&mut self, axis: Vector4Axis) -> &mut f32
Performs the mutable indexing (
container[index]
) operation. Read more§impl IndexMut<Vector4Axis> for Vector4i
impl IndexMut<Vector4Axis> for Vector4i
§fn index_mut(&mut self, axis: Vector4Axis) -> &mut i32
fn index_mut(&mut self, axis: Vector4Axis) -> &mut i32
Performs the mutable indexing (
container[index]
) operation. Read more§impl Ord for Vector4Axis
impl Ord for Vector4Axis
§impl PartialEq for Vector4Axis
impl PartialEq for Vector4Axis
§fn eq(&self, other: &Vector4Axis) -> bool
fn eq(&self, other: &Vector4Axis) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd for Vector4Axis
impl PartialOrd for Vector4Axis
§fn partial_cmp(&self, other: &Vector4Axis) -> Option<Ordering>
fn partial_cmp(&self, other: &Vector4Axis) -> Option<Ordering>
1.0.0 · source§fn 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 ToGodot for Vector4Axis
impl ToGodot for Vector4Axis
§fn to_godot(&self) -> <Vector4Axis as GodotConvert>::Via
fn to_godot(&self) -> <Vector4Axis as GodotConvert>::Via
Converts this type to the Godot type by reference, usually by cloning.
§fn into_godot(self) -> Self::Via
fn into_godot(self) -> Self::Via
Converts this type to the Godot type. Read more
§fn to_variant(&self) -> Variant
fn to_variant(&self) -> Variant
Converts this type to a Variant.
impl Copy for Vector4Axis
impl Eq for Vector4Axis
impl StructuralPartialEq for Vector4Axis
Auto Trait Implementations§
impl Freeze for Vector4Axis
impl RefUnwindSafe for Vector4Axis
impl Send for Vector4Axis
impl Sync for Vector4Axis
impl Unpin for Vector4Axis
impl UnwindSafe for Vector4Axis
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