pub struct ContourBand {
pub lower: Option<f64>,
pub upper: Option<f64>,
pub regions: Vec<ContourRegion>,
/* private fields */
}Expand description
One scalar interval of a ContourBandSet.
None is an unbounded end. The semantic ownership rule is lower-inclusive and upper-exclusive, with the unbounded upper band retaining its maximum boundary.
Fields§
§lower: Option<f64>Inclusive lower scalar bound, or no lower bound.
upper: Option<f64>Exclusive upper scalar bound, or no upper bound.
regions: Vec<ContourRegion>Deterministically ordered disconnected filled regions.
Implementations§
Source§impl ContourBand
impl ContourBand
Sourcepub fn fragments(&self) -> &[ContourFragment]
pub fn fragments(&self) -> &[ContourFragment]
Return deterministic, non-overlapping simple fragments for this band.
This representation is useful to render a band without painting its holes: draw the fragments and leave all complementary geometry untouched. It has the same positive-area coverage as Self::regions.
Trait Implementations§
Source§impl Clone for ContourBand
impl Clone for ContourBand
Source§fn clone(&self) -> ContourBand
fn clone(&self) -> ContourBand
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · 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 ContourBand
impl Debug for ContourBand
Source§impl PartialEq for ContourBand
impl PartialEq for ContourBand
impl StructuralPartialEq for ContourBand
Auto Trait Implementations§
impl Freeze for ContourBand
impl RefUnwindSafe for ContourBand
impl Send for ContourBand
impl Sync for ContourBand
impl Unpin for ContourBand
impl UnsafeUnpin for ContourBand
impl UnwindSafe for ContourBand
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