@@ -27,8 +27,8 @@ impl<'a> flatbuffers::Follow<'a> for OSCSettings<'a> {
27
27
28
28
impl < ' a > OSCSettings < ' a > {
29
29
pub const VT_ENABLED : flatbuffers:: VOffsetT = 4 ;
30
- pub const VT_PORTIN : flatbuffers:: VOffsetT = 6 ;
31
- pub const VT_PORTOUT : flatbuffers:: VOffsetT = 8 ;
30
+ pub const VT_PORT_IN : flatbuffers:: VOffsetT = 6 ;
31
+ pub const VT_PORT_OUT : flatbuffers:: VOffsetT = 8 ;
32
32
pub const VT_ADDRESS : flatbuffers:: VOffsetT = 10 ;
33
33
34
34
#[ inline]
@@ -42,8 +42,8 @@ impl<'a> OSCSettings<'a> {
42
42
) -> flatbuffers:: WIPOffset < OSCSettings < ' bldr > > {
43
43
let mut builder = OSCSettingsBuilder :: new ( _fbb) ;
44
44
if let Some ( x) = args. address { builder. add_address ( x) ; }
45
- builder. add_portOut ( args. portOut ) ;
46
- builder. add_portIn ( args. portIn ) ;
45
+ builder. add_port_out ( args. port_out ) ;
46
+ builder. add_port_in ( args. port_in ) ;
47
47
builder. add_enabled ( args. enabled ) ;
48
48
builder. finish ( )
49
49
}
@@ -57,18 +57,18 @@ impl<'a> OSCSettings<'a> {
57
57
unsafe { self . _tab . get :: < bool > ( OSCSettings :: VT_ENABLED , Some ( false ) ) . unwrap ( ) }
58
58
}
59
59
#[ inline]
60
- pub fn portIn ( & self ) -> u16 {
60
+ pub fn port_in ( & self ) -> u16 {
61
61
// Safety:
62
62
// Created from valid Table for this object
63
63
// which contains a valid value in this slot
64
- unsafe { self . _tab . get :: < u16 > ( OSCSettings :: VT_PORTIN , Some ( 0 ) ) . unwrap ( ) }
64
+ unsafe { self . _tab . get :: < u16 > ( OSCSettings :: VT_PORT_IN , Some ( 0 ) ) . unwrap ( ) }
65
65
}
66
66
#[ inline]
67
- pub fn portOut ( & self ) -> u16 {
67
+ pub fn port_out ( & self ) -> u16 {
68
68
// Safety:
69
69
// Created from valid Table for this object
70
70
// which contains a valid value in this slot
71
- unsafe { self . _tab . get :: < u16 > ( OSCSettings :: VT_PORTOUT , Some ( 0 ) ) . unwrap ( ) }
71
+ unsafe { self . _tab . get :: < u16 > ( OSCSettings :: VT_PORT_OUT , Some ( 0 ) ) . unwrap ( ) }
72
72
}
73
73
#[ inline]
74
74
pub fn address ( & self ) -> Option < & ' a str > {
@@ -87,26 +87,26 @@ impl flatbuffers::Verifiable for OSCSettings<'_> {
87
87
use self :: flatbuffers:: Verifiable ;
88
88
v. visit_table ( pos) ?
89
89
. visit_field :: < bool > ( "enabled" , Self :: VT_ENABLED , false ) ?
90
- . visit_field :: < u16 > ( "portIn " , Self :: VT_PORTIN , false ) ?
91
- . visit_field :: < u16 > ( "portOut " , Self :: VT_PORTOUT , false ) ?
90
+ . visit_field :: < u16 > ( "port_in " , Self :: VT_PORT_IN , false ) ?
91
+ . visit_field :: < u16 > ( "port_out " , Self :: VT_PORT_OUT , false ) ?
92
92
. visit_field :: < flatbuffers:: ForwardsUOffset < & str > > ( "address" , Self :: VT_ADDRESS , false ) ?
93
93
. finish ( ) ;
94
94
Ok ( ( ) )
95
95
}
96
96
}
97
97
pub struct OSCSettingsArgs < ' a > {
98
98
pub enabled : bool ,
99
- pub portIn : u16 ,
100
- pub portOut : u16 ,
99
+ pub port_in : u16 ,
100
+ pub port_out : u16 ,
101
101
pub address : Option < flatbuffers:: WIPOffset < & ' a str > > ,
102
102
}
103
103
impl < ' a > Default for OSCSettingsArgs < ' a > {
104
104
#[ inline]
105
105
fn default ( ) -> Self {
106
106
OSCSettingsArgs {
107
107
enabled : false ,
108
- portIn : 0 ,
109
- portOut : 0 ,
108
+ port_in : 0 ,
109
+ port_out : 0 ,
110
110
address : None ,
111
111
}
112
112
}
@@ -122,12 +122,12 @@ impl<'a: 'b, 'b> OSCSettingsBuilder<'a, 'b> {
122
122
self . fbb_ . push_slot :: < bool > ( OSCSettings :: VT_ENABLED , enabled, false ) ;
123
123
}
124
124
#[ inline]
125
- pub fn add_portIn ( & mut self , portIn : u16 ) {
126
- self . fbb_ . push_slot :: < u16 > ( OSCSettings :: VT_PORTIN , portIn , 0 ) ;
125
+ pub fn add_port_in ( & mut self , port_in : u16 ) {
126
+ self . fbb_ . push_slot :: < u16 > ( OSCSettings :: VT_PORT_IN , port_in , 0 ) ;
127
127
}
128
128
#[ inline]
129
- pub fn add_portOut ( & mut self , portOut : u16 ) {
130
- self . fbb_ . push_slot :: < u16 > ( OSCSettings :: VT_PORTOUT , portOut , 0 ) ;
129
+ pub fn add_port_out ( & mut self , port_out : u16 ) {
130
+ self . fbb_ . push_slot :: < u16 > ( OSCSettings :: VT_PORT_OUT , port_out , 0 ) ;
131
131
}
132
132
#[ inline]
133
133
pub fn add_address ( & mut self , address : flatbuffers:: WIPOffset < & ' b str > ) {
@@ -152,8 +152,8 @@ impl core::fmt::Debug for OSCSettings<'_> {
152
152
fn fmt ( & self , f : & mut core:: fmt:: Formatter < ' _ > ) -> core:: fmt:: Result {
153
153
let mut ds = f. debug_struct ( "OSCSettings" ) ;
154
154
ds. field ( "enabled" , & self . enabled ( ) ) ;
155
- ds. field ( "portIn " , & self . portIn ( ) ) ;
156
- ds. field ( "portOut " , & self . portOut ( ) ) ;
155
+ ds. field ( "port_in " , & self . port_in ( ) ) ;
156
+ ds. field ( "port_out " , & self . port_out ( ) ) ;
157
157
ds. field ( "address" , & self . address ( ) ) ;
158
158
ds. finish ( )
159
159
}
0 commit comments