Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-31 10:12:00

0001 // Protocol Buffers - Google's data interchange format
0002 // Copyright 2023 Google LLC.  All rights reserved.
0003 //
0004 // Use of this source code is governed by a BSD-style
0005 // license that can be found in the LICENSE file or at
0006 // https://developers.google.com/open-source/licenses/bsd
0007 
0008 #ifndef GOOGLE_PROTOBUF_COMPILER_RUST_ONEOF_H__
0009 #define GOOGLE_PROTOBUF_COMPILER_RUST_ONEOF_H__
0010 
0011 #include "google/protobuf/compiler/rust/accessors/accessor_case.h"
0012 #include "google/protobuf/compiler/rust/context.h"
0013 #include "google/protobuf/descriptor.h"
0014 
0015 namespace google {
0016 namespace protobuf {
0017 namespace compiler {
0018 namespace rust {
0019 
0020 void GenerateOneofDefinition(Context& ctx, const OneofDescriptor& oneof);
0021 void GenerateOneofAccessors(Context& ctx, const OneofDescriptor& oneof,
0022                             AccessorCase accessor_case);
0023 void GenerateOneofExternC(Context& ctx, const OneofDescriptor& oneof);
0024 void GenerateOneofThunkCc(Context& ctx, const OneofDescriptor& oneof);
0025 
0026 }  // namespace rust
0027 }  // namespace compiler
0028 }  // namespace protobuf
0029 }  // namespace google
0030 
0031 #endif  // GOOGLE_PROTOBUF_COMPILER_RUST_ONEOF_H__