pub struct OctantId { /* private fields */ }
Implementations§
Source§impl OctantId
impl OctantId
pub fn new() -> Self
pub fn set_true(&mut self, index: usize)
pub fn flip_at(&mut self, index: usize)
pub fn with_index(index: usize) -> Self
pub fn x(&self) -> u8
pub fn y(&self) -> u8
pub fn z(&self) -> u8
pub fn inverse(&self) -> Self
pub fn to_numeral(&self) -> usize
Trait Implementations§
Source§impl<'de> Deserialize<'de> for OctantId
impl<'de> Deserialize<'de> for OctantId
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
Auto Trait Implementations§
impl Freeze for OctantId
impl RefUnwindSafe for OctantId
impl Send for OctantId
impl Sync for OctantId
impl Unpin for OctantId
impl UnwindSafe for OctantId
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