Struct indexing::pointer::PRange [] [src]

pub struct PRange<'id, T, Proof = Unknown> { /* fields omitted */ }

PRange is a pointer-based valid range with start and end pointer representation.

Methods

impl<'id, T, P> PRange<'id, T, P>
[src]

[src]

[src]

[src]

Check if the range is empty. NonEmpty ranges have extra methods.

[src]

Split the range in half, with the upper middle index landing in the latter half. Proof of nonemptiness P transfers to the latter half.

impl<'id, T, P> PRange<'id, T, P>
[src]

[src]

[src]

Return the middle index, rounding up on even

[src]

impl<'id, T> PRange<'id, T, NonEmpty>
[src]

[src]

[src]

[src]

[src]

Increase the range's start, if the result is still a non-empty range.

Return true if stepped successfully, false if the range would be empty.

[src]

Decrease the range's end, if the result is still a non-empty range.

Return true if stepped successfully, false if the range would be empty.

Trait Implementations

impl<'id, T, P> Provable for PRange<'id, T, P>
[src]

[src]

Return a copy of self with the proof parameter set to Unknown.

impl<'id, T: Debug, Proof: Debug> Debug for PRange<'id, T, Proof>
[src]

[src]

Formats the value using the given formatter.

impl<'id, T, P> Copy for PRange<'id, T, P>
[src]

impl<'id, T, P> Clone for PRange<'id, T, P>
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl<'id, T, P, Q> PartialEq<PRange<'id, T, Q>> for PRange<'id, T, P>
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

1.0.0
[src]

This method tests for !=.

impl<'id, T, P> Eq for PRange<'id, T, P>
[src]

impl<'id, T, P> PointerRange<'id> for PRange<'id, T, P>
[src]

[src]

[src]

[src]

impl<'id, T, P> IntoIterator for PRange<'id, T, P>
[src]

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

[src]

Creates an iterator from a value. Read more

impl<'id, T, P> From<PSlice<'id, T, P>> for PRange<'id, T, P>
[src]

[src]

Performs the conversion.