pub struct Quality<'a> {
pub audible: &'a dyn Fn(&[u8]) -> bool,
pub level_capped: &'a dyn Fn(&[u8]) -> bool,
pub min_spread: usize,
}Expand description
What a driver’s generated sounds must be beyond valid, by its own rules.
Fields§
§audible: &'a dyn Fn(&[u8]) -> boolThe program makes a sound a player hears.
level_capped: &'a dyn Fn(&[u8]) -> boolThe program stays at or under the driver’s level cap.
min_spread: usizeThe fewest fields any two sounds of a dealt hand differ in.
Auto Trait Implementations§
impl<'a> !RefUnwindSafe for Quality<'a>
impl<'a> !Send for Quality<'a>
impl<'a> !Sync for Quality<'a>
impl<'a> !UnwindSafe for Quality<'a>
impl<'a> Freeze for Quality<'a>
impl<'a> Unpin for Quality<'a>
impl<'a> UnsafeUnpin for Quality<'a>
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