blob: 669f822a3784837a015d4134071a629216399bb1 [file] [log] [blame]
// Part of the Crubit project, under the Apache License v2.0 with LLVM
// Exceptions. See /LICENSE for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#[repr(C)]
#[derive(Copy, Clone, Default)]
pub struct LeafRsType {
field: u8,
}
pub fn wrap(x: u8) -> LeafRsType {
LeafRsType { field: x }
}
pub fn unwrap(x: LeafRsType) -> u8 {
x.field
}