blob: 80a0f7078bbb889309393f37d1d60b0912beb7ca [file] [log] [blame]
// DO NOT EDIT: This file is machine-generated by fidlgen
#![warn(clippy::all)]
#![allow(
unused_parens,
unused_variables,
unused_mut,
unused_imports,
unreachable_code,
)]
{% for ident in self.library().declaration_order %}
{% if !matches!(self.rust_next_denylist(ident), Denylist::Denied) %}
{% match self.library().declarations[ident] %}
{% when DeclType::Alias %}
{{ self.alias(self.library().alias_declarations[ident]) }}
{% when DeclType::Bits %}
{{ self.bits(self.library().bits_declarations[ident]) }}
{% when DeclType::Const %}
{{ self.cnst(self.library().const_declarations[ident]) }}
{% when DeclType::Enum %}
{{ self.enm(self.library().enum_declarations[ident]) }}
{% when DeclType::Struct %}
{{ self.strct(self.library().struct_declarations[ident]) }}
{% when DeclType::Table %}
{{ self.table(self.library().table_declarations[ident]) }}
{% when DeclType::Union %}
{% let union_ = self.library().union_declarations[ident] %}
{% if !union_.is_result %}
{{ self.union_(union_) }}
{% endif %}
{% when DeclType::NewType %} {{ todo!("newtypes are not supported yet") }}
{% when DeclType::Overlay %} {{ todo!("overlays are not supported yet") }}
{% when DeclType::Protocol %}
{{ self.protocol(self.library().protocol_declarations[ident]) }}
{% when DeclType::ExperimentalResource %}
{% when DeclType::Service %}
{{ self.service(self.library().service_declarations[ident]) }}
{% endmatch %}
{% endif %}
{% endfor %}
{% if self.emit_compat() %}
{{ self.compat() }}
{% endif %}