Struct acacia::partition::Interval [] [src]

pub struct Interval<T> { /* fields omitted */ }

A half-open interval [a, b) between two points a and b

Methods

impl<T: PartialOrd> Interval<T>
[src]

Create a new interval given lower and upper bound

This constructor dynamically asserts that start < end.

Trait Implementations

impl<T: Copy> Copy for Interval<T>
[src]

impl<T: Clone> Clone for Interval<T>
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl<T: Debug> Debug for Interval<T>
[src]

Formats the value using the given formatter.

impl<T: Mid + Copy> Subdivide for Interval<T>
[src]

Subdivide into smaller partitions

impl<T: Mid + PartialOrd + Copy> Partition<T> for Interval<T>
[src]

Does the partition contain an element?

Dispatch an element to the correct subpartition Read more