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
§type ToVia<'v> = i32
type ToVia<'v> = i32
Target type of
to_godot()
, which differs from Via
for pass-by-reference types.§fn to_godot(&self) -> <Vector4Axis as ToGodot>::ToVia<'_>
fn to_godot(&self) -> <Vector4Axis as ToGodot>::ToVia<'_>
Converts this type to the Godot type by reference, usually by cloning.
§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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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
)