Skip to main content

Boundedness

Trait Boundedness 

Source
pub trait Boundedness:
    SingletonBound<UnderlyingBound = Self>
    + KeyedSingletonBound<UnderlyingBound = Self>
    + Sealed {
    type PreserveOrderIfBounded<InO: Ordering>: Ordering;

    const BOUNDED: bool;
    const BOUND_KIND: BoundKind = _;
}
Expand description

A marker trait indicating whether a stream’s length is bounded (finite) or unbounded (potentially infinite).

Implementors of this trait use it to signal the boundedness property of a stream.

Required Associated Constants§

Source

const BOUNDED: bool

true if the bound is Bounded, false if it is Unbounded.

Provided Associated Constants§

Source

const BOUND_KIND: BoundKind = _

The BoundKind corresponding to this type.

Required Associated Types§

Source

type PreserveOrderIfBounded<InO: Ordering>: Ordering

Determines the output ordering of a join based on this (right/build) side’s boundedness.

When this side is Bounded, the join accumulates this side first and then streams the left side through, preserving the left side’s ordering InO. When this side is Unbounded, a symmetric hash join is used and ordering is lost.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§