Struct radiate_rust::engines::score::Score
source · pub struct Score {
pub value: f32,
}Fields§
§value: f32Implementations§
source§impl Score
impl Score
pub fn from_float(value: f32) -> Self
pub fn from_int(value: i32) -> Self
pub fn from_usize(value: usize) -> Self
pub fn from_string(value: &str) -> Self
pub fn as_float(&self) -> f32
pub fn as_int(&self) -> i32
pub fn as_string(&self) -> String
pub fn as_usize(&self) -> usize
Trait Implementations§
source§impl PartialEq for Score
impl PartialEq for Score
source§impl PartialOrd for Score
impl PartialOrd for Score
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 moreAuto Trait Implementations§
impl Freeze for Score
impl RefUnwindSafe for Score
impl Send for Score
impl Sync for Score
impl Unpin for Score
impl UnwindSafe for Score
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§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)