Struct esl::SoundChance
source · pub struct SoundChance {
pub sound_id: String,
pub chance: u8,
}
Fields§
§sound_id: String
§chance: u8
Trait Implementations§
source§impl Clone for SoundChance
impl Clone for SoundChance
source§fn clone(&self) -> SoundChance
fn clone(&self) -> SoundChance
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 SoundChance
impl Debug for SoundChance
source§impl PartialEq for SoundChance
impl PartialEq for SoundChance
source§fn eq(&self, other: &SoundChance) -> bool
fn eq(&self, other: &SoundChance) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl From<SoundChance> for Field
impl From<SoundChance> for Field
source§fn from(v: SoundChance) -> Self
fn from(v: SoundChance) -> Self
Converts to this type from the input type.
impl Eq for SoundChance
impl StructuralEq for SoundChance
impl StructuralPartialEq for SoundChance
Auto Trait Implementations§
impl RefUnwindSafe for SoundChance
impl Send for SoundChance
impl Sync for SoundChance
impl Unpin for SoundChance
impl UnwindSafe for SoundChance
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