pub struct GodotInteger {
pub value: i64,
pub byte_size: usize,
}Expand description
An integer from godot
Fields§
§value: i64§byte_size: usizeImplementations§
Source§impl GodotInteger
impl GodotInteger
pub fn new_from_i32(v: i32) -> Self
pub fn new_from_i64(v: i64) -> Self
Trait Implementations§
Source§impl Clone for GodotInteger
impl Clone for GodotInteger
Source§fn clone(&self) -> GodotInteger
fn clone(&self) -> GodotInteger
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 GodotInteger
impl Debug for GodotInteger
Source§impl GodotVariant for GodotInteger
impl GodotVariant for GodotInteger
Source§fn byte_length(&self) -> usize
fn byte_length(&self) -> usize
Describes the byte length of a variant, most primitive variants have a static byte length.
However some variants like a dictionary may have dynamic sizes
Source§fn variant_eq(&self, other: &dyn GodotVariant) -> bool
fn variant_eq(&self, other: &dyn GodotVariant) -> bool
Checks if a variant is equal to another variant
impl Copy for GodotInteger
Auto Trait Implementations§
impl Freeze for GodotInteger
impl RefUnwindSafe for GodotInteger
impl Send for GodotInteger
impl Sync for GodotInteger
impl Unpin for GodotInteger
impl UnwindSafe for GodotInteger
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