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.
45// DO NOT EDIT.
6// Generated from FIDL library `zither.aliases` by zither, a Fuchsia platform tool.
78#![allow(unused_imports)]
910use zerocopy::{FromBytes, IntoBytes};
1112pub type BoolAlias = bool;
1314pub type Int8Alias = i8;
1516pub type Int16Alias = i16;
1718pub type Int32Alias = i32;
1920pub type Int64Alias = i64;
2122pub type Uint8Alias = u8;
2324pub type Uint16Alias = u16;
2526pub type Uint32Alias = u32;
2728pub type Uint64Alias = u64;
2930/// 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;
3334#[repr(i16)]
35#[derive(Clone, Copy, Debug, Eq, IntoBytes, PartialEq)]
36pub enum Enum {
37 Member = 0,
38}
3940pub type EnumAlias = Enum;
4142#[repr(u16)]
43#[derive(Clone, Copy, Debug, Eq, IntoBytes, PartialEq)]
44pub enum Bits {
45 One = 1,
46}
4748pub type BitsAlias = Bits;
4950#[repr(C)]
51#[derive(Clone, Copy, Debug, Eq, PartialEq)]
52pub struct Struct {
53pub x: u64,
54pub y: u64,
55pub e: EnumAlias,
56}
5758pub type StructAlias = Struct;
5960pub type ArrayAlias = [u32; 4];
6162pub type NestedArrayAlias = [[Struct; 8]; 4];
6364/// Alias with a one-line comment.
65pub type AliasWithOneLineComment = bool;
6667/// Alias
68/// with
69/// a
70/// many-line
71/// comment.
72pub type AliasWithManyLineComment = u8;