o3 0.62.0

shared-nothing primitives
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use std::convert::Infallible;

pub trait Grant: Sized {
    fn from_lane(lane: usize) -> Option<Self>;
}

impl Grant for Infallible {
    fn from_lane(_: usize) -> Option<Self> {
        None
    }
}

impl Grant for usize {
    fn from_lane(lane: usize) -> Option<Self> {
        Some(lane)
    }
}