pub struct TileMask34(pub u64);Expand description
1-bit-per-tile version of TileSet34, i.e. non-multi set, set of tile kinds.
Tuple Fields§
§0: u64Implementations§
Source§impl TileMask34
impl TileMask34
pub fn new(__0: u64) -> TileMask34
Source§impl TileMask34
impl TileMask34
Sourcepub const fn complete_set() -> Self
pub const fn complete_set() -> Self
The complete set of tiles (all 34 kinds).
Trait Implementations§
Source§impl BitAnd for TileMask34
impl BitAnd for TileMask34
Source§type Output = TileMask34
type Output = TileMask34
The resulting type after applying the
& operator.Source§fn bitand(self, rhs: TileMask34) -> TileMask34
fn bitand(self, rhs: TileMask34) -> TileMask34
Performs the
& operation. Read moreSource§impl BitAndAssign for TileMask34
impl BitAndAssign for TileMask34
Source§fn bitand_assign(&mut self, rhs: TileMask34)
fn bitand_assign(&mut self, rhs: TileMask34)
Performs the
&= operation. Read moreSource§impl BitOr for TileMask34
impl BitOr for TileMask34
Source§type Output = TileMask34
type Output = TileMask34
The resulting type after applying the
| operator.Source§fn bitor(self, rhs: TileMask34) -> TileMask34
fn bitor(self, rhs: TileMask34) -> TileMask34
Performs the
| operation. Read moreSource§impl BitOrAssign for TileMask34
impl BitOrAssign for TileMask34
Source§fn bitor_assign(&mut self, rhs: TileMask34)
fn bitor_assign(&mut self, rhs: TileMask34)
Performs the
|= operation. Read moreSource§impl BitXor for TileMask34
impl BitXor for TileMask34
Source§type Output = TileMask34
type Output = TileMask34
The resulting type after applying the
^ operator.Source§fn bitxor(self, rhs: TileMask34) -> TileMask34
fn bitxor(self, rhs: TileMask34) -> TileMask34
Performs the
^ operation. Read moreSource§impl BitXorAssign for TileMask34
impl BitXorAssign for TileMask34
Source§fn bitxor_assign(&mut self, rhs: TileMask34)
fn bitxor_assign(&mut self, rhs: TileMask34)
Performs the
^= operation. Read moreSource§impl Clone for TileMask34
impl Clone for TileMask34
Source§fn clone(&self) -> TileMask34
fn clone(&self) -> TileMask34
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for TileMask34
impl Debug for TileMask34
Source§impl Default for TileMask34
impl Default for TileMask34
Source§fn default() -> TileMask34
fn default() -> TileMask34
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for TileMask34
impl<'de> Deserialize<'de> for TileMask34
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 Display for TileMask34
impl Display for TileMask34
Source§impl From<TileMask34> for u64
impl From<TileMask34> for u64
Source§fn from(original: TileMask34) -> Self
fn from(original: TileMask34) -> Self
Converts to this type from the input type.
Source§impl From<TileSet34> for TileMask34
impl From<TileSet34> for TileMask34
Source§impl From<TileSet37> for TileMask34
impl From<TileSet37> for TileMask34
Source§impl From<u64> for TileMask34
impl From<u64> for TileMask34
Source§fn from(original: u64) -> TileMask34
fn from(original: u64) -> TileMask34
Converts to this type from the input type.
Source§impl FromIterator<Tile> for TileMask34
impl FromIterator<Tile> for TileMask34
Source§impl PartialEq for TileMask34
impl PartialEq for TileMask34
Source§impl Serialize for TileMask34
impl Serialize for TileMask34
impl Copy for TileMask34
impl Eq for TileMask34
impl StructuralPartialEq for TileMask34
Auto Trait Implementations§
impl Freeze for TileMask34
impl RefUnwindSafe for TileMask34
impl Send for TileMask34
impl Sync for TileMask34
impl Unpin for TileMask34
impl UnwindSafe for TileMask34
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§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more