@@ -105,7 +105,7 @@ pub const ENUM_VALUES_DIRECTION: [Direction; 2] = [
105
105
Direction :: Decreasing ,
106
106
] ;
107
107
108
- /// A traversal is a path in a network.
108
+ /// A traversal is a path in a network.
109
109
/// Traversals may be used to model roads, railway tracks, railway lines or trips.
110
110
/// Traversals are defined as a sequence of segment and direction pairs.
111
111
#[ derive( Clone , Copy , PartialEq , Eq , PartialOrd , Ord , Hash , Default ) ]
@@ -1992,11 +1992,11 @@ impl<'a> LinearReferencingMethod<'a> {
1992
1992
unsafe { self . _tab . get :: < flatbuffers:: ForwardsUOffset < flatbuffers:: Vector < ' a , u64 > > > ( LinearReferencingMethod :: VT_ANCHOR_INDICES , None ) . unwrap ( ) }
1993
1993
}
1994
1994
#[ inline]
1995
- pub fn distances ( & self ) -> flatbuffers:: Vector < ' a , u64 > {
1995
+ pub fn distances ( & self ) -> flatbuffers:: Vector < ' a , f64 > {
1996
1996
// Safety:
1997
1997
// Created from valid Table for this object
1998
1998
// which contains a valid value in this slot
1999
- unsafe { self . _tab . get :: < flatbuffers:: ForwardsUOffset < flatbuffers:: Vector < ' a , u64 > > > ( LinearReferencingMethod :: VT_DISTANCES , None ) . unwrap ( ) }
1999
+ unsafe { self . _tab . get :: < flatbuffers:: ForwardsUOffset < flatbuffers:: Vector < ' a , f64 > > > ( LinearReferencingMethod :: VT_DISTANCES , None ) . unwrap ( ) }
2000
2000
}
2001
2001
/// The unit used to measure the distance between anchors
2002
2002
#[ inline]
@@ -2028,7 +2028,7 @@ impl flatbuffers::Verifiable for LinearReferencingMethod<'_> {
2028
2028
. visit_field :: < TraversalRef > ( "traversal_index" , Self :: VT_TRAVERSAL_INDEX , false ) ?
2029
2029
. visit_field :: < flatbuffers:: ForwardsUOffset < flatbuffers:: Vector < ' _ , TraversalRef > > > ( "used_on" , Self :: VT_USED_ON , false ) ?
2030
2030
. visit_field :: < flatbuffers:: ForwardsUOffset < flatbuffers:: Vector < ' _ , u64 > > > ( "anchor_indices" , Self :: VT_ANCHOR_INDICES , true ) ?
2031
- . visit_field :: < flatbuffers:: ForwardsUOffset < flatbuffers:: Vector < ' _ , u64 > > > ( "distances" , Self :: VT_DISTANCES , true ) ?
2031
+ . visit_field :: < flatbuffers:: ForwardsUOffset < flatbuffers:: Vector < ' _ , f64 > > > ( "distances" , Self :: VT_DISTANCES , true ) ?
2032
2032
. visit_field :: < DistanceUnit > ( "distance_unit" , Self :: VT_DISTANCE_UNIT , false ) ?
2033
2033
. visit_field :: < DistanceUnit > ( "measure_unit" , Self :: VT_MEASURE_UNIT , false ) ?
2034
2034
. finish ( ) ;
@@ -2041,7 +2041,7 @@ pub struct LinearReferencingMethodArgs<'a> {
2041
2041
pub traversal_index : Option < & ' a TraversalRef > ,
2042
2042
pub used_on : Option < flatbuffers:: WIPOffset < flatbuffers:: Vector < ' a , TraversalRef > > > ,
2043
2043
pub anchor_indices : Option < flatbuffers:: WIPOffset < flatbuffers:: Vector < ' a , u64 > > > ,
2044
- pub distances : Option < flatbuffers:: WIPOffset < flatbuffers:: Vector < ' a , u64 > > > ,
2044
+ pub distances : Option < flatbuffers:: WIPOffset < flatbuffers:: Vector < ' a , f64 > > > ,
2045
2045
pub distance_unit : DistanceUnit ,
2046
2046
pub measure_unit : DistanceUnit ,
2047
2047
}
@@ -2087,7 +2087,7 @@ impl<'a: 'b, 'b> LinearReferencingMethodBuilder<'a, 'b> {
2087
2087
self . fbb_ . push_slot_always :: < flatbuffers:: WIPOffset < _ > > ( LinearReferencingMethod :: VT_ANCHOR_INDICES , anchor_indices) ;
2088
2088
}
2089
2089
#[ inline]
2090
- pub fn add_distances ( & mut self , distances : flatbuffers:: WIPOffset < flatbuffers:: Vector < ' b , u64 > > ) {
2090
+ pub fn add_distances ( & mut self , distances : flatbuffers:: WIPOffset < flatbuffers:: Vector < ' b , f64 > > ) {
2091
2091
self . fbb_ . push_slot_always :: < flatbuffers:: WIPOffset < _ > > ( LinearReferencingMethod :: VT_DISTANCES , distances) ;
2092
2092
}
2093
2093
#[ inline]
0 commit comments