struct Hallway {
packed: usize,
}
Expand description
Pack the state of the hallway into a usize
. Each hallway position is represented by a nibble
with the pod type (plus additionally empty or room entrance markers) for a total of 44 bits.
Fields§
§packed: usize
Implementations§
Trait Implementations§
impl Copy for Hallway
impl Eq for Hallway
impl StructuralPartialEq for Hallway
Auto Trait Implementations§
impl Freeze for Hallway
impl RefUnwindSafe for Hallway
impl Send for Hallway
impl Sync for Hallway
impl Unpin for Hallway
impl UnwindSafe for Hallway
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)