dope-net 0.15.0

The manifold runtime
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
use std::num;

/// Receive batch bounded by `MAX_ITEMS`, with producer floor `MIN_CAPACITY`.
/// # Safety
/// Bounds must be ordered, `len()` bounded, and producers must honor every supported capacity.
pub unsafe trait Source: ExactSizeIterator {
    /// Absolute maximum number of items returned by one receive call.
    const MAX_ITEMS: num::NonZeroUsize = num::NonZeroUsize::MIN;

    /// Smallest per-call capacity under which the producer can consume valid input.
    const MIN_CAPACITY: num::NonZeroUsize = Self::MAX_ITEMS;
}