Enum godot::prelude::VariantOperator
#[repr(i32)]pub enum VariantOperator {
Show 26 variants
Equal = 0,
NotEqual = 1,
Less = 2,
LessEqual = 3,
Greater = 4,
GreaterEqual = 5,
Add = 6,
Subtract = 7,
Multiply = 8,
Divide = 9,
Negate = 10,
Positive = 11,
Modulo = 12,
Power = 13,
ShiftLeft = 14,
ShiftRight = 15,
BitAnd = 16,
BitOr = 17,
BitXor = 18,
BitNegate = 19,
And = 20,
Or = 21,
Xor = 22,
Not = 23,
In = 24,
Max = 25,
}
Variants§
Equal = 0
NotEqual = 1
Less = 2
LessEqual = 3
Greater = 4
GreaterEqual = 5
Add = 6
Subtract = 7
Multiply = 8
Divide = 9
Negate = 10
Positive = 11
Modulo = 12
Power = 13
ShiftLeft = 14
ShiftRight = 15
BitAnd = 16
BitOr = 17
BitXor = 18
BitNegate = 19
And = 20
Or = 21
Xor = 22
Not = 23
In = 24
Max = 25
Trait Implementations§
§impl Clone for VariantOperator
impl Clone for VariantOperator
§fn clone(&self) -> VariantOperator
fn clone(&self) -> VariantOperator
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 VariantOperator
impl Debug for VariantOperator
§impl FromGodot for VariantOperator
impl FromGodot for VariantOperator
§fn try_from_godot(
via: <VariantOperator as GodotConvert>::Via
) -> Result<VariantOperator, ConvertError>
fn try_from_godot( via: <VariantOperator as GodotConvert>::Via ) -> Result<VariantOperator, 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 VariantOperator
impl GodotConvert for VariantOperator
§impl Hash for VariantOperator
impl Hash for VariantOperator
§impl Ord for VariantOperator
impl Ord for VariantOperator
§impl PartialEq for VariantOperator
impl PartialEq for VariantOperator
§fn eq(&self, other: &VariantOperator) -> bool
fn eq(&self, other: &VariantOperator) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd for VariantOperator
impl PartialOrd for VariantOperator
§fn partial_cmp(&self, other: &VariantOperator) -> Option<Ordering>
fn partial_cmp(&self, other: &VariantOperator) -> 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 VariantOperator
impl ToGodot for VariantOperator
§fn to_godot(&self) -> <VariantOperator as GodotConvert>::Via
fn to_godot(&self) -> <VariantOperator as GodotConvert>::Via
Converts this type to the Godot type by reference, usually by cloning.
§fn into_godot(self) -> <VariantOperator as GodotConvert>::Via
fn into_godot(self) -> <VariantOperator as GodotConvert>::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 VariantOperator
impl Eq for VariantOperator
impl StructuralPartialEq for VariantOperator
Auto Trait Implementations§
impl Freeze for VariantOperator
impl RefUnwindSafe for VariantOperator
impl Send for VariantOperator
impl Sync for VariantOperator
impl Unpin for VariantOperator
impl UnwindSafe for VariantOperator
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