fidl_data_zither_aliases/
aliases.rs

1// Copyright 2022 The Fuchsia Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5// DO NOT EDIT.
6// Generated from FIDL library `zither.aliases` by zither, a Fuchsia platform tool.
7
8#![allow(unused_imports)]
9
10use zerocopy::{FromBytes, IntoBytes};
11
12pub type BoolAlias = bool;
13
14pub type Int8Alias = i8;
15
16pub type Int16Alias = i16;
17
18pub type Int32Alias = i32;
19
20pub type Int64Alias = i64;
21
22pub type Uint8Alias = u8;
23
24pub type Uint16Alias = u16;
25
26pub type Uint32Alias = u32;
27
28pub type Uint64Alias = u64;
29
30/// TODO(https://fxbug.dev/42057022): The IR currently does not propagate enough
31/// information for bindings to express this type as an alias.
32pub const CONST_FROM_ALIAS: u8 = 0xff;
33
34#[repr(i16)]
35#[derive(Clone, Copy, Debug, Eq, IntoBytes, PartialEq)]
36pub enum Enum {
37    Member = 0,
38}
39
40pub type EnumAlias = Enum;
41
42#[repr(u16)]
43#[derive(Clone, Copy, Debug, Eq, IntoBytes, PartialEq)]
44pub enum Bits {
45    One = 1,
46}
47
48pub type BitsAlias = Bits;
49
50#[repr(C)]
51#[derive(Clone, Copy, Debug, Eq, PartialEq)]
52pub struct Struct {
53    pub x: u64,
54    pub y: u64,
55    pub e: EnumAlias,
56}
57
58pub type StructAlias = Struct;
59
60pub type ArrayAlias = [u32; 4];
61
62pub type NestedArrayAlias = [[Struct; 8]; 4];
63
64/// Alias with a one-line comment.
65pub type AliasWithOneLineComment = bool;
66
67/// Alias
68///     with
69///         a
70///           many-line
71///             comment.
72pub type AliasWithManyLineComment = u8;