Boundedness

Trait Boundedness 

Source
pub trait Boundedness: KeyedBoundFoldLike + Sealed {
    // Required method
    fn is_bounded() -> bool;
}
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 Methods§

Source

fn is_bounded() -> bool

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

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§