multifile/a.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.multifile` by zither, a Fuchsia platform tool.
7
8use zerocopy::{IntoBytes, TryFromBytes};
9
10#[repr(u32)]
11#[derive(Clone, Copy, Debug, Eq, Hash, IntoBytes, PartialEq, TryFromBytes)]
12pub enum A {
13 Member = 0,
14}
15
16impl A {
17 pub fn from_raw(raw: u32) -> Option<Self> {
18 match raw {
19 0 => Some(Self::Member),
20
21 _ => None,
22 }
23 }
24}
25
26impl From<A> for u32 {
27 fn from(val: A) -> Self {
28 val as Self
29 }
30}