Struct backgammon_simd::types::prim::BOrW
source · #[repr(transparent)]pub struct BOrW(pub i8);Tuple Fields§
§0: i8Implementations§
source§impl BOrW
impl BOrW
pub const fn empty() -> BOrW
pub fn is_empty(&self) -> bool
pub fn to_bwn(self) -> Option<(Bw, u8)>
pub fn to_count(self) -> u8
pub fn to_color(self) -> Option<Bw>
pub fn matches(&self, bw: Bw) -> bool
pub fn white(n: u8) -> Self
pub fn black(n: u8) -> Self
pub fn as_u32(self) -> u32
pub fn as_alnum(self) -> char
Trait Implementations§
source§impl AddAssign<i8> for BOrW
impl AddAssign<i8> for BOrW
source§fn add_assign(&mut self, rhs: i8)
fn add_assign(&mut self, rhs: i8)
Performs the
+= operation. Read moresource§impl<'de> Deserialize<'de> for BOrW
impl<'de> Deserialize<'de> for BOrW
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
source§impl PartialEq for BOrW
impl PartialEq for BOrW
source§impl SubAssign<i8> for BOrW
impl SubAssign<i8> for BOrW
source§fn sub_assign(&mut self, rhs: i8)
fn sub_assign(&mut self, rhs: i8)
Performs the
-= operation. Read moreimpl Copy for BOrW
impl Eq for BOrW
impl StructuralEq for BOrW
impl StructuralPartialEq for BOrW
Auto Trait Implementations§
impl RefUnwindSafe for BOrW
impl Send for BOrW
impl Sync for BOrW
impl Unpin for BOrW
impl UnwindSafe for BOrW
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
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more