pub enum ChartSide {
SPlus,
SMinus,
TPlus,
TMinus,
}Expand description
Which side of a chart square a cube edge is: the chart’s other coordinate runs along the edge.
Variants§
Implementations§
Source§impl ChartSide
impl ChartSide
pub const ALL: [ChartSide; 4]
Sourcepub fn edge(self, chart: usize) -> (usize, f64)
pub fn edge(self, chart: usize) -> (usize, f64)
The cube edge this side of chart chart lies on, and the sign relating
the chart’s free coordinate f to the edge parameter: q = sign · f.
This is the single place the two charts meeting along a cube edge agree
about its identity and its direction, so a subdivision computed once in
q reaches both of them unchanged.
Trait Implementations§
impl Copy for ChartSide
impl Eq for ChartSide
impl StructuralPartialEq for ChartSide
Auto Trait Implementations§
impl Freeze for ChartSide
impl RefUnwindSafe for ChartSide
impl Send for ChartSide
impl Sync for ChartSide
impl Unpin for ChartSide
impl UnsafeUnpin for ChartSide
impl UnwindSafe for ChartSide
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.