pub struct ScoreComponent { /* private fields */ }
Implementations§
Source§impl ScoreComponent
impl ScoreComponent
pub fn from_score<T: Into<String>, U: Into<String>>( name: T, objective: U, ) -> Self
pub fn get_name(&self) -> &String
pub fn set_name<T: Into<String>>(&mut self, name: T)
pub fn name<T: Into<String>>(self, name: T) -> Self
pub fn get_objective(&self) -> &String
pub fn set_objective<T: Into<String>>(&mut self, objective: T)
pub fn objective<T: Into<String>>(self, objective: T) -> Self
pub fn get_value(&self) -> Option<&String>
pub fn set_value<T: Into<String>>(&mut self, value: Option<T>)
pub fn value<T: Into<String>>(self, value: Option<T>) -> Self
Trait Implementations§
Source§impl Clone for ScoreComponent
impl Clone for ScoreComponent
Source§fn clone(&self) -> ScoreComponent
fn clone(&self) -> ScoreComponent
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 moreAuto Trait Implementations§
impl Freeze for ScoreComponent
impl RefUnwindSafe for ScoreComponent
impl Send for ScoreComponent
impl Sync for ScoreComponent
impl Unpin for ScoreComponent
impl UnwindSafe for ScoreComponent
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