Enum Vector4Axis
#[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§
§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>
Converts the Godot representation to this type, returning
Err
on failure.§fn from_godot(via: Self::Via) -> Self
fn from_godot(via: Self::Via) -> Self
⚠️ Converts the Godot representation to this type. 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
, returning Err
on failure.§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
§impl PartialOrd for Vector4Axis
impl PartialOrd for Vector4Axis
§impl ToGodot for Vector4Axis
impl ToGodot for Vector4Axis
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