Struct godot_core::builtin::VariantOperator

source ·
pub struct VariantOperator { /* private fields */ }
Expand description

Godot enum name: Variant.Operator.

Implementations§

source§

impl VariantOperator

source

pub const EQUAL: VariantOperator = _

Godot enumerator name: OP_EQUAL

source

pub const NOT_EQUAL: VariantOperator = _

Godot enumerator name: OP_NOT_EQUAL

source

pub const LESS: VariantOperator = _

Godot enumerator name: OP_LESS

source

pub const LESS_EQUAL: VariantOperator = _

Godot enumerator name: OP_LESS_EQUAL

source

pub const GREATER: VariantOperator = _

Godot enumerator name: OP_GREATER

source

pub const GREATER_EQUAL: VariantOperator = _

Godot enumerator name: OP_GREATER_EQUAL

source

pub const ADD: VariantOperator = _

Godot enumerator name: OP_ADD

source

pub const SUBTRACT: VariantOperator = _

Godot enumerator name: OP_SUBTRACT

source

pub const MULTIPLY: VariantOperator = _

Godot enumerator name: OP_MULTIPLY

source

pub const DIVIDE: VariantOperator = _

Godot enumerator name: OP_DIVIDE

source

pub const NEGATE: VariantOperator = _

Godot enumerator name: OP_NEGATE

source

pub const POSITIVE: VariantOperator = _

Godot enumerator name: OP_POSITIVE

source

pub const MODULO: VariantOperator = _

Godot enumerator name: OP_MODULE

source

pub const POWER: VariantOperator = _

Godot enumerator name: OP_POWER

source

pub const SHIFT_LEFT: VariantOperator = _

Godot enumerator name: OP_SHIFT_LEFT

source

pub const SHIFT_RIGHT: VariantOperator = _

Godot enumerator name: OP_SHIFT_RIGHT

source

pub const BIT_AND: VariantOperator = _

Godot enumerator name: OP_BIT_AND

source

pub const BIT_OR: VariantOperator = _

Godot enumerator name: OP_BIT_OR

source

pub const BIT_XOR: VariantOperator = _

Godot enumerator name: OP_BIT_XOR

source

pub const BIT_NEGATE: VariantOperator = _

Godot enumerator name: OP_BIT_NEGATE

source

pub const AND: VariantOperator = _

Godot enumerator name: OP_AND

source

pub const OR: VariantOperator = _

Godot enumerator name: OP_OR

source

pub const XOR: VariantOperator = _

Godot enumerator name: OP_XOR

source

pub const NOT: VariantOperator = _

Godot enumerator name: OP_NOT

source

pub const IN: VariantOperator = _

Godot enumerator name: OP_IN

source

pub const MAX: VariantOperator = _

Godot enumerator name: OP_MAX

Trait Implementations§

source§

impl Clone for VariantOperator

source§

fn clone(&self) -> VariantOperator

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for VariantOperator

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl EngineEnum for VariantOperator

source§

fn try_from_ord(ord: i32) -> Option<Self>

source§

fn ord(self) -> i32

Ordinal value of the enumerator, as specified in Godot. This is not necessarily unique.
source§

fn from_ord(ord: i32) -> Self

source§

impl FromGodot for VariantOperator

source§

fn try_from_godot(via: Self::Via) -> Result<Self, ConvertError>

Converts the Godot representation to this type, returning Err on failure.
source§

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>

Performs the conversion from a [Variant], returning Err on failure.
source§

fn from_variant(variant: &Variant) -> Self

⚠️ Performs the conversion from a [Variant]. Read more
source§

impl GodotConvert for VariantOperator

§

type Via = i32

The type through which Self is represented in Godot.
source§

impl Hash for VariantOperator

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
source§

impl IndexEnum for VariantOperator

source§

const ENUMERATOR_COUNT: usize = 25usize

Number of distinct enumerators in the enum. Read more
source§

fn to_index(self) -> usize

Converts the enumerator to usize, which can be used as an array index. Read more
source§

impl PartialEq for VariantOperator

source§

fn eq(&self, other: &VariantOperator) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

impl ToGodot for VariantOperator

source§

fn to_godot(&self) -> Self::Via

Converts this type to the Godot type by reference, usually by cloning.
source§

fn into_godot(self) -> Self::Via

Converts this type to the Godot type. Read more
source§

fn to_variant(&self) -> Variant

Converts this type to a [Variant].
source§

impl Copy for VariantOperator

source§

impl Eq for VariantOperator

source§

impl StructuralPartialEq for VariantOperator

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> CloneToUninit for T
where T: Clone,

source§

default unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> CloneToUninit for T
where T: Copy,

source§

unsafe fn clone_to_uninit(&self, dst: *mut T)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dst. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T> ToOwned for T
where T: Clone,

§

type Owned = T

The resulting type after obtaining ownership.
source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.