Skip to main content

IntCOStack

Struct IntCOStack 

Source
pub struct IntCOStack<I>
where I: IntCO,
{ /* private fields */ }

Implementations§

Source§

impl<I> IntCOStack<I>
where I: IntCO,

Source

pub fn change_points(&self) -> &[ChangePoint<I::CoordType>]

Source

pub fn height_at(&self, x: I::CoordType) -> usize

Source

pub fn max_height(&self) -> usize

Source§

impl<I> IntCOStack<I>
where I: IntCO,

Source

pub fn iter_intervals(&self) -> impl Iterator<Item = (I, usize)>

Source

pub fn iter_intervals_at_least( &self, min_height: usize, ) -> impl Iterator<Item = (I, usize)>

Source

pub fn iter_intervals_at_most( &self, max_height: usize, ) -> impl Iterator<Item = (I, usize)>

Source

pub fn iter_intervals_exactly( &self, target_height: usize, ) -> impl Iterator<Item = (I, usize)>

Source

pub fn iter_intervals_between( &self, min_height: usize, max_height: usize, ) -> impl Iterator<Item = (I, usize)>

Source

pub fn peak_intervals(&self) -> impl Iterator<Item = (I, usize)>

Source§

impl<I> IntCOStack<I>
where I: IntCO,

Source

pub fn is_empty(&self) -> bool

Source

pub fn contains_point(&self, x: I::CoordType) -> bool

Source

pub fn intersects_interval<Q>(&self, query: Q) -> bool
where Q: IntCO<CoordType = I::CoordType>,

Source

pub fn contains_interval<Q>(&self, query: Q) -> bool
where Q: IntCO<CoordType = I::CoordType>,

Trait Implementations§

Source§

impl<I> Clone for IntCOStack<I>
where I: IntCO + Clone, I::CoordType: Clone,

Source§

fn clone(&self) -> IntCOStack<I>

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl<I> Debug for IntCOStack<I>
where I: IntCO + Debug, I::CoordType: Debug,

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<I> Default for IntCOStack<I>
where I: IntCO,

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl<I> FromIterator<I> for IntCOStack<I>
where I: IntCO,

Source§

fn from_iter<T>(iter: T) -> Self
where T: IntoIterator<Item = I>,

Creates a value from an iterator. Read more
Source§

impl<I> FromParallelIterator<I> for IntCOStack<I>
where I: IntCO + Send, I::CoordType: Send,

Source§

fn from_par_iter<T>(par_iter: T) -> Self
where T: IntoParallelIterator<Item = I>,

Creates an instance of the collection from the parallel iterator par_iter. Read more
Source§

impl<I> PartialEq for IntCOStack<I>

Source§

fn eq(&self, other: &IntCOStack<I>) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl<I> Eq for IntCOStack<I>
where I: IntCO + Eq, I::CoordType: Eq,

Source§

impl<I> StructuralPartialEq for IntCOStack<I>
where I: IntCO,

Auto Trait Implementations§

§

impl<I> Freeze for IntCOStack<I>

§

impl<I> RefUnwindSafe for IntCOStack<I>

§

impl<I> Send for IntCOStack<I>

§

impl<I> Sync for IntCOStack<I>

§

impl<I> Unpin for IntCOStack<I>

§

impl<I> UnsafeUnpin for IntCOStack<I>

§

impl<I> UnwindSafe for IntCOStack<I>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> IntoEither for T

Source§

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 more
Source§

fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
where F: FnOnce(&Self) -> bool,

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
Source§

impl<T> Pointable for T

Source§

const ALIGN: usize

The alignment of pointer.
Source§

type Init = T

The type for initializers.
Source§

unsafe fn init(init: <T as Pointable>::Init) -> usize

Initializes a with the given initializer. Read more
Source§

unsafe fn deref<'a>(ptr: usize) -> &'a T

Dereferences the given pointer. Read more
Source§

unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T

Mutably dereferences the given pointer. Read more
Source§

unsafe fn drop(ptr: usize)

Drops the object pointed to by the given pointer. Read more
Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.