pub struct GodotFloat {
pub value: f64,
pub byte_size: usize,
}Expand description
A float from godot
Fields§
§value: f64§byte_size: usizeImplementations§
Source§impl GodotFloat
impl GodotFloat
pub const BIT_32_SIZE: usize = 4usize
pub const BIT_64_SIZE: usize = 8usize
pub fn new_from_f32(v: f32) -> Self
pub fn new_from_f64(v: f64) -> Self
Trait Implementations§
Source§impl Clone for GodotFloat
impl Clone for GodotFloat
Source§fn clone(&self) -> GodotFloat
fn clone(&self) -> GodotFloat
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 moreSource§impl Debug for GodotFloat
impl Debug for GodotFloat
Source§impl GodotVariant for GodotFloat
impl GodotVariant for GodotFloat
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 GodotFloat
Auto Trait Implementations§
impl Freeze for GodotFloat
impl RefUnwindSafe for GodotFloat
impl Send for GodotFloat
impl Sync for GodotFloat
impl Unpin for GodotFloat
impl UnwindSafe for GodotFloat
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