pub struct DirectionFlags { /* private fields */ }
Implementations§
Source§impl DirectionFlags
impl DirectionFlags
pub fn new(map: DirectionMap<bool>) -> Self
pub fn packed(maps: [DirectionMap<bool>; 2]) -> Self
pub fn map(self) -> DirectionMap<bool>
pub fn packed_maps(self) -> [DirectionMap<bool>; 2]
pub fn with<F>(self, mapper: F) -> Self
pub fn packed_with<F>(self, mapper: F) -> Self
pub fn modify<F, T>(&mut self, modifier: F) -> T
pub fn packed_modify<F, T>(&mut self, modifier: F) -> T
Trait Implementations§
Source§impl Clone for DirectionFlags
impl Clone for DirectionFlags
Source§fn clone(&self) -> DirectionFlags
fn clone(&self) -> DirectionFlags
Returns a copy 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 DirectionFlags
impl Debug for DirectionFlags
Source§impl Default for DirectionFlags
impl Default for DirectionFlags
Source§fn default() -> DirectionFlags
fn default() -> DirectionFlags
Returns the “default value” for a type. Read more
Source§impl From<[DirectionMap<bool>; 2]> for DirectionFlags
impl From<[DirectionMap<bool>; 2]> for DirectionFlags
Source§impl From<DirectionFlags> for [DirectionMap<bool>; 2]
impl From<DirectionFlags> for [DirectionMap<bool>; 2]
Source§fn from(flags: DirectionFlags) -> Self
fn from(flags: DirectionFlags) -> Self
Converts to this type from the input type.
Source§impl From<DirectionFlags> for DirectionMap<bool>
impl From<DirectionFlags> for DirectionMap<bool>
Source§fn from(flags: DirectionFlags) -> Self
fn from(flags: DirectionFlags) -> Self
Converts to this type from the input type.
Source§impl From<DirectionMap<bool>> for DirectionFlags
impl From<DirectionMap<bool>> for DirectionFlags
Source§fn from(map: DirectionMap<bool>) -> Self
fn from(map: DirectionMap<bool>) -> Self
Converts to this type from the input type.
Source§impl Hash for DirectionFlags
impl Hash for DirectionFlags
Source§impl Ord for DirectionFlags
impl Ord for DirectionFlags
Source§fn cmp(&self, other: &DirectionFlags) -> Ordering
fn cmp(&self, other: &DirectionFlags) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for DirectionFlags
impl PartialEq for DirectionFlags
Source§impl PartialOrd for DirectionFlags
impl PartialOrd for DirectionFlags
impl Copy for DirectionFlags
impl Eq for DirectionFlags
impl StructuralPartialEq for DirectionFlags
Auto Trait Implementations§
impl Freeze for DirectionFlags
impl RefUnwindSafe for DirectionFlags
impl Send for DirectionFlags
impl Sync for DirectionFlags
impl Unpin for DirectionFlags
impl UnwindSafe for DirectionFlags
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