#[repr(C)]pub struct Boolean2 {
pub x: bool,
pub y: bool,
}Expand description
A structure that stores two-dimensional boolean data.
Fields§
§x: bool§y: boolImplementations§
Source§impl Boolean2
impl Boolean2
pub const fn xx(self) -> Boolean2
pub const fn xy(self) -> Boolean2
pub const fn yx(self) -> Boolean2
pub const fn yy(self) -> Boolean2
pub const fn xxx(self) -> Boolean3
pub const fn xxy(self) -> Boolean3
pub const fn xyx(self) -> Boolean3
pub const fn xyy(self) -> Boolean3
pub const fn yxx(self) -> Boolean3
pub const fn yxy(self) -> Boolean3
pub const fn yyx(self) -> Boolean3
pub const fn yyy(self) -> Boolean3
pub const fn xxxx(self) -> Boolean4
pub const fn xxxy(self) -> Boolean4
pub const fn xxyx(self) -> Boolean4
pub const fn xxyy(self) -> Boolean4
pub const fn xyxx(self) -> Boolean4
pub const fn xyxy(self) -> Boolean4
pub const fn xyyx(self) -> Boolean4
pub const fn xyyy(self) -> Boolean4
pub const fn yxxx(self) -> Boolean4
pub const fn yxxy(self) -> Boolean4
pub const fn yxyx(self) -> Boolean4
pub const fn yxyy(self) -> Boolean4
pub const fn yyxx(self) -> Boolean4
pub const fn yyxy(self) -> Boolean4
pub const fn yyyx(self) -> Boolean4
pub const fn yyyy(self) -> Boolean4
Source§impl Boolean2
impl Boolean2
Sourcepub const fn from_array(arr: [bool; 2]) -> Self
pub const fn from_array(arr: [bool; 2]) -> Self
Creates with given array.
Sourcepub fn from_slice(slice: &[bool]) -> Self
pub fn from_slice(slice: &[bool]) -> Self
Creates with given slice.
§Panics
If the length of the given array is less than the number of elements in the vector, an index out of range error occurs.
Sourcepub const fn from_tuple(tuple: (bool, bool)) -> Self
pub const fn from_tuple(tuple: (bool, bool)) -> Self
Creates with given tuple.
Trait Implementations§
Source§impl BitAndAssign for Boolean2
impl BitAndAssign for Boolean2
Source§fn bitand_assign(&mut self, rhs: Self)
fn bitand_assign(&mut self, rhs: Self)
Performs the
&= operation. Read moreSource§impl BitOrAssign for Boolean2
impl BitOrAssign for Boolean2
Source§fn bitor_assign(&mut self, rhs: Self)
fn bitor_assign(&mut self, rhs: Self)
Performs the
|= operation. Read moreSource§impl BitXorAssign for Boolean2
impl BitXorAssign for Boolean2
Source§fn bitxor_assign(&mut self, rhs: Self)
fn bitxor_assign(&mut self, rhs: Self)
Performs the
^= operation. Read moreimpl Copy for Boolean2
impl Eq for Boolean2
impl StructuralPartialEq for Boolean2
Auto Trait Implementations§
impl Freeze for Boolean2
impl RefUnwindSafe for Boolean2
impl Send for Boolean2
impl Sync for Boolean2
impl Unpin for Boolean2
impl UnwindSafe for Boolean2
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