fn try_from(stones: (u64, u64)) -> Result<Self, Self::Error> {
        let (black_stones, white_stones) = stones;
        if black_stones & white_stones != 0 {
            return Err(OthelloError::PiecesOverlapping);
        }
        let board = OthelloBoard {
            black_stones,
            white_stones,
        };
        Ok(board)
    }
/// Returns a board built from the two specified bitboards.
///
/// Returns an error if the two bitboards intersect.
///
/// # Examples
/// ```rust
/// use magpie::othello::{OthelloBoard, Stone};
///
/// let board = OthelloBoard::standard();
/// let black = board.bits_for(Stone::Black);
/// let white = board.bits_for(Stone::White);
///
/// // Quite a contrived example
/// let board = OthelloBoard::try_from((black, white));
/// assert_eq!(Ok(OthelloBoard::standard()), board);
/// ```
Returns a board built from the two specified bitboards.
Returns an error if the two bitboards intersect.
Returns a board built from the two specified bitboards . Returns an error if the two bitboards intersect .
fn try_from(stones: (u64, u64)) -> Result<Self, Self::Error> {
        let (black_stones, white_stones) = stones;
        if black_stones & white_stones != 0 {
            return Err(OthelloError::PiecesOverlapping);
        }
        let board = OthelloBoard {
            black_stones,
            white_stones,
        };
        Ok(board)
    }
fn try_from ( stones : ( u64 , u64 ) ) -> Result < Self , Self :: Error > { let ( black_stones , white_stones ) = stones ; if black_stones & white_stones != 0 { return Err ( OthelloError :: PiecesOverlapping ) ; } let board = OthelloBoard { black_stones , white_stones , } ; Ok ( board ) }
Returns a board built from the two specified bitboards.
Returns a board built from the two specified bitboards .
stones
(u64, u64)
examples
```rust
use magpie::othello::{OthelloBoard, Stone}.

let board = OthelloBoard::standard();
let black = board.bits_for(Stone::Black);
let white = board.bits_for(Stone::White).

Quite a contrived example
let board = OthelloBoard::try_from((black, white));
assert_eq!(Ok(OthelloBoard::standard()), board);
```
` ` ` rust use magpie :: othello :: { OthelloBoard Stone } . let board = OthelloBoard :: standard () ; let black = board . bits_for ( Stone :: Black ) ; let white = board . bits_for ( Stone :: White ) . Quite a contrived example let board = OthelloBoard :: try_from (( black white )) ; assert_eq! ( Ok ( OthelloBoard :: standard () ) board ) ; ` ` `