nvme/ds/
uuid.rs

1#![allow(dead_code)]
2
3use modular_bitfield::prelude::*;
4
5#[bitfield(bits = 7)]
6#[derive(BitfieldSpecifier)]
7pub struct UuidIndex(B7);
8
9impl From<Option<UuidIndex>> for UuidIndex {
10    fn from(o: Option<UuidIndex>) -> Self {
11        match o {
12            Some(u) => u,
13            None => UuidIndex::new().with_0(0),
14        }
15    }
16}