dope-net 0.15.0

The manifold runtime
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
use std::{array, iter, num, option};

use crate::wire::batch;

unsafe impl<T> batch::raw::Source for iter::Empty<T> {}

unsafe impl<T> batch::raw::Source for iter::Once<T> {}

unsafe impl<T> batch::raw::Source for option::IntoIter<T> {}

unsafe impl<T, const N: usize> batch::raw::Source for array::IntoIter<T, N> {
    const MAX_ITEMS: num::NonZeroUsize = match num::NonZeroUsize::new(N) {
        Some(limit) => limit,
        None => num::NonZeroUsize::MIN,
    };
}