pub struct Score {
pub values: Vec<f32>,
}
Fields§
§values: Vec<f32>
Implementations§
Source§impl Score
impl Score
pub fn from_f32(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§
Auto 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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)