#[repr(i32)]pub enum Vector4Axis {
X = 0,
Y = 1,
Z = 2,
W = 3,
}Expand description
Enumerates the axes in a Vector4.
Vector4 implements Index<Vector4Axis> and IndexMut<Vector4Axis>
, so you can use this type to access a vector component as vec[axis].
Variants§
Trait Implementations§
Source§impl Clone for Vector4Axis
impl Clone for Vector4Axis
Source§fn clone(&self) -> Vector4Axis
fn clone(&self) -> Vector4Axis
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 Vector4Axis
impl Debug for Vector4Axis
Source§impl EngineEnum for Vector4Axis
impl EngineEnum for Vector4Axis
fn try_from_ord(ord: i32) -> Option<Vector4Axis>
Source§fn ord(self) -> i32
fn ord(self) -> i32
Ordinal value of the enumerator, as specified in Godot.
This is not necessarily unique.
Source§fn values() -> &'static [Vector4Axis]
fn values() -> &'static [Vector4Axis]
Returns a slice of distinct enum values. Read more
Source§fn all_constants() -> &'static [EnumConstant<Vector4Axis>]
fn all_constants() -> &'static [EnumConstant<Vector4Axis>]
Returns metadata for all enum constants. Read more
fn from_ord(ord: i32) -> Self
Source§impl FromGodot for Vector4Axis
impl FromGodot for Vector4Axis
Source§fn try_from_godot(
via: <Vector4Axis as GodotConvert>::Via,
) -> Result<Vector4Axis, ConvertError>
fn try_from_godot( via: <Vector4Axis as GodotConvert>::Via, ) -> Result<Vector4Axis, ConvertError>
Converts the Godot representation to this type, returning
Err on failure.Source§fn from_godot(via: Self::Via) -> Self
fn from_godot(via: Self::Via) -> Self
⚠️ Converts the Godot representation to this type. Read more
Source§fn try_from_variant(variant: &Variant) -> Result<Self, ConvertError>
fn try_from_variant(variant: &Variant) -> Result<Self, ConvertError>
Performs the conversion from a
Variant, returning Err on failure.Source§impl GodotConvert for Vector4Axis
impl GodotConvert for Vector4Axis
Source§fn godot_shape() -> GodotShape
fn godot_shape() -> GodotShape
Which “shape” this type has for property registration (e.g. builtin, enum, …). Read more
Source§impl Hash for Vector4Axis
impl Hash for Vector4Axis
Source§impl Index<Vector4Axis> for Projection
impl Index<Vector4Axis> for Projection
Source§fn index(
&self,
index: Vector4Axis,
) -> &<Projection as Index<Vector4Axis>>::Output
fn index( &self, index: Vector4Axis, ) -> &<Projection as Index<Vector4Axis>>::Output
Performs the indexing (
container[index]) operation. Read moreSource§impl Index<Vector4Axis> for Vector4
impl Index<Vector4Axis> for Vector4
Source§impl Index<Vector4Axis> for Vector4i
impl Index<Vector4Axis> for Vector4i
Source§impl IndexMut<Vector4Axis> for Vector4
impl IndexMut<Vector4Axis> for Vector4
Source§impl IndexMut<Vector4Axis> for Vector4i
impl IndexMut<Vector4Axis> for Vector4i
Source§impl Ord for Vector4Axis
impl Ord for Vector4Axis
Source§fn cmp(&self, other: &Vector4Axis) -> Ordering
fn cmp(&self, other: &Vector4Axis) -> 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 Vector4Axis
impl PartialEq for Vector4Axis
Source§impl PartialOrd for Vector4Axis
impl PartialOrd for Vector4Axis
Source§impl ToGodot for Vector4Axis
impl ToGodot for Vector4Axis
Source§type Pass = ByValue
type Pass = ByValue
Whether arguments of this type are passed by value or by reference. Read more
Source§fn to_godot(&self) -> <Vector4Axis as GodotConvert>::Via
fn to_godot(&self) -> <Vector4Axis as GodotConvert>::Via
Converts this type to Godot representation, optimizing for zero-copy when possible. Read more
Source§fn to_godot_owned(&self) -> Self::Via
fn to_godot_owned(&self) -> Self::Via
Converts this type to owned Godot representation. Read more
Source§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 UnsafeUnpin 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