pub struct Race { /* private fields */ }Expand description
Models a race as a sequence of markers.
Note that a race is normalized, i.e. leading and trailing dividers are stripped.
let race_with_superfluous_dividers = ",,,,,,r,y,,,,,,,".parse::<Race>().expect("to parse");
let minimal_race = "r,y".parse::<Race>().expect("to parse");
assert_eq!(race_with_superfluous_dividers, minimal_race);Implementations§
Trait Implementations§
impl Eq for Race
impl StructuralPartialEq for Race
Auto Trait Implementations§
impl Freeze for Race
impl RefUnwindSafe for Race
impl Send for Race
impl Sync for Race
impl Unpin for Race
impl UnwindSafe for Race
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