Struct backgammon_simd::types::prim::BAndW
source · pub struct BAndW(/* private fields */);Implementations§
source§impl BAndW
impl BAndW
pub fn new(black: u8, white: u8) -> Self
pub fn is_empty(&self) -> bool
pub fn get(&self, bw: &Bw) -> u8
pub fn set(&mut self, bw: &Bw, n: u8)
pub fn empty() -> Self
pub fn as_u32(&self) -> u32
pub fn from_u32(n: u32) -> Self
pub fn as_alnum(&self) -> [char; 2]
Trait Implementations§
source§impl<'de> Deserialize<'de> for BAndW
impl<'de> Deserialize<'de> for BAndW
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 BAndW
impl PartialEq for BAndW
impl Copy for BAndW
impl Eq for BAndW
impl StructuralEq for BAndW
impl StructuralPartialEq for BAndW
Auto Trait Implementations§
impl RefUnwindSafe for BAndW
impl Send for BAndW
impl Sync for BAndW
impl Unpin for BAndW
impl UnwindSafe for BAndW
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