• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // automatically generated by the FlatBuffers compiler, do not modify
2 // @generated
3 extern crate alloc;
4 extern crate flatbuffers;
5 use alloc::boxed::Box;
6 use alloc::string::{String, ToString};
7 use alloc::vec::Vec;
8 use core::mem;
9 use core::cmp::Ordering;
10 use self::flatbuffers::{EndianScalar, Follow};
11 use super::*;
12 pub enum InParentNamespaceOffset {}
13 #[derive(Copy, Clone, PartialEq)]
14 
15 pub struct InParentNamespace<'a> {
16   pub _tab: flatbuffers::Table<'a>,
17 }
18 
19 impl<'a> flatbuffers::Follow<'a> for InParentNamespace<'a> {
20   type Inner = InParentNamespace<'a>;
21   #[inline]
follow(buf: &'a [u8], loc: usize) -> Self::Inner22   unsafe fn follow(buf: &'a [u8], loc: usize) -> Self::Inner {
23     Self { _tab: flatbuffers::Table::new(buf, loc) }
24   }
25 }
26 
27 impl<'a> InParentNamespace<'a> {
28 
get_fully_qualified_name() -> &'static str29   pub const fn get_fully_qualified_name() -> &'static str {
30     "MyGame.InParentNamespace"
31   }
32 
33   #[inline]
init_from_table(table: flatbuffers::Table<'a>) -> Self34   pub unsafe fn init_from_table(table: flatbuffers::Table<'a>) -> Self {
35     InParentNamespace { _tab: table }
36   }
37   #[allow(unused_mut)]
create<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr, A: flatbuffers::Allocator + 'bldr>( _fbb: &'mut_bldr mut flatbuffers::FlatBufferBuilder<'bldr, A>, _args: &'args InParentNamespaceArgs ) -> flatbuffers::WIPOffset<InParentNamespace<'bldr>>38   pub fn create<'bldr: 'args, 'args: 'mut_bldr, 'mut_bldr, A: flatbuffers::Allocator + 'bldr>(
39     _fbb: &'mut_bldr mut flatbuffers::FlatBufferBuilder<'bldr, A>,
40     _args: &'args InParentNamespaceArgs
41   ) -> flatbuffers::WIPOffset<InParentNamespace<'bldr>> {
42     let mut builder = InParentNamespaceBuilder::new(_fbb);
43     builder.finish()
44   }
45 
unpack(&self) -> InParentNamespaceT46   pub fn unpack(&self) -> InParentNamespaceT {
47     InParentNamespaceT {
48     }
49   }
50 }
51 
52 impl flatbuffers::Verifiable for InParentNamespace<'_> {
53   #[inline]
run_verifier( v: &mut flatbuffers::Verifier, pos: usize ) -> Result<(), flatbuffers::InvalidFlatbuffer>54   fn run_verifier(
55     v: &mut flatbuffers::Verifier, pos: usize
56   ) -> Result<(), flatbuffers::InvalidFlatbuffer> {
57     use self::flatbuffers::Verifiable;
58     v.visit_table(pos)?
59      .finish();
60     Ok(())
61   }
62 }
63 pub struct InParentNamespaceArgs {
64 }
65 impl<'a> Default for InParentNamespaceArgs {
66   #[inline]
default() -> Self67   fn default() -> Self {
68     InParentNamespaceArgs {
69     }
70   }
71 }
72 
73 pub struct InParentNamespaceBuilder<'a: 'b, 'b, A: flatbuffers::Allocator + 'a> {
74   fbb_: &'b mut flatbuffers::FlatBufferBuilder<'a, A>,
75   start_: flatbuffers::WIPOffset<flatbuffers::TableUnfinishedWIPOffset>,
76 }
77 impl<'a: 'b, 'b, A: flatbuffers::Allocator + 'a> InParentNamespaceBuilder<'a, 'b, A> {
78   #[inline]
new(_fbb: &'b mut flatbuffers::FlatBufferBuilder<'a, A>) -> InParentNamespaceBuilder<'a, 'b, A>79   pub fn new(_fbb: &'b mut flatbuffers::FlatBufferBuilder<'a, A>) -> InParentNamespaceBuilder<'a, 'b, A> {
80     let start = _fbb.start_table();
81     InParentNamespaceBuilder {
82       fbb_: _fbb,
83       start_: start,
84     }
85   }
86   #[inline]
finish(self) -> flatbuffers::WIPOffset<InParentNamespace<'a>>87   pub fn finish(self) -> flatbuffers::WIPOffset<InParentNamespace<'a>> {
88     let o = self.fbb_.end_table(self.start_);
89     flatbuffers::WIPOffset::new(o.value())
90   }
91 }
92 
93 impl core::fmt::Debug for InParentNamespace<'_> {
fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result94   fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
95     let mut ds = f.debug_struct("InParentNamespace");
96       ds.finish()
97   }
98 }
99 #[non_exhaustive]
100 #[derive(Debug, Clone, PartialEq)]
101 pub struct InParentNamespaceT {
102 }
103 impl Default for InParentNamespaceT {
default() -> Self104   fn default() -> Self {
105     Self {
106     }
107   }
108 }
109 impl InParentNamespaceT {
pack<'b, A: flatbuffers::Allocator + 'b>( &self, _fbb: &mut flatbuffers::FlatBufferBuilder<'b, A> ) -> flatbuffers::WIPOffset<InParentNamespace<'b>>110   pub fn pack<'b, A: flatbuffers::Allocator + 'b>(
111     &self,
112     _fbb: &mut flatbuffers::FlatBufferBuilder<'b, A>
113   ) -> flatbuffers::WIPOffset<InParentNamespace<'b>> {
114     InParentNamespace::create(_fbb, &InParentNamespaceArgs{
115     })
116   }
117 }
118