pub struct SignSplit {
pub axis: SplitAxis,
pub at: f64,
pub below: (u8, u8, u8),
pub above: (u8, u8, u8),
}Expand description
Colour an area, density or line by the side of a threshold it is on —
red below, green above — cut at the exact (interpolated) crossing, so the
parts meet without a gap or an overlap (DataZooDE/anofox-visualization#1256).
at is in data units.
Fields§
§axis: SplitAxis§at: f64§below: (u8, u8, u8)§above: (u8, u8, u8)Implementations§
Trait Implementations§
impl Copy for SignSplit
impl StructuralPartialEq for SignSplit
Auto Trait Implementations§
impl Forget for SignSplit
impl Freeze for SignSplit
impl Move for SignSplit
impl RefUnwindSafe for SignSplit
impl Send for SignSplit
impl Sync for SignSplit
impl Unpin for SignSplit
impl UnsafeUnpin for SignSplit
impl UnwindSafe for SignSplit
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