1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
/* Generated with cbindgen:0.20.0 */
/* Warning, this file is autogenerated by cbindgen. Don't modify this manually. */
/**
* A C-compatible `struct` originating **inside** Rust
* used for passing arrays across the FFI boundary
*/
typedef struct InternalArray InternalArray;
/**
* A C-compatible `struct` originating **outside** Rust
* used for passing arrays across the FFI boundary
*/
typedef struct ExternalArray ExternalArray;
/**
* Convert a Polyline into an array of coordinates
*
* Callers must pass two arguments:
*
* - a pointer to `NUL`-terminated characters (`char*`)
* - an unsigned 32-bit `int` for precision (5 for Google Polylines, 6 for
* OSRM and Valhalla Polylines)
*
* A decoding failure will return an [Array](struct.Array.html) whose `data` field is `[[NaN, NaN]]`, and whose `len` field is `1`.
*
* Implementations calling this function **must** call [`drop_float_array`](fn.drop_float_array.html)
* with the returned [Array](struct.Array.html), in order to free the memory it allocates.
*
* # Safety
*
* This function is unsafe because it accesses a raw pointer which could contain arbitrary data
*/
struct InternalArray ;
/**
* Convert an array of coordinates into a Polyline
*
* Callers must pass two arguments:
*
* - a [Struct](struct.Array.html) with two fields:
* - `data`, a void pointer to an array of floating-point lat, lon coordinates: `[[1.0, 2.0]]`
* - `len`, the length of the array being passed. Its type must be `size_t`: `1`
* - an unsigned 32-bit `int` for precision (5 for Google Polylines, 6 for
* OSRM and Valhalla Polylines)
*
* A decoding failure will return one of the following:
*
* - a `char*` beginning with "Longitude error:" if invalid longitudes are passed
* - a `char*` beginning with "Latitude error:" if invalid latitudes are passed
*
* Implementations calling this function **must** call [`drop_cstring`](fn.drop_cstring.html)
* with the returned `c_char` pointer, in order to free the memory it allocates.
*
* # Safety
*
* This function is unsafe because it accesses a raw pointer which could contain arbitrary data
*/
char *;
/**
* Free Array memory which Rust has allocated across the FFI boundary
*
* # Safety
*
* This function is unsafe because it accesses a raw pointer which could contain arbitrary data
*/
void ;
/**
* Free `CString` memory which Rust has allocated across the FFI boundary
*
* # Safety
*
* This function is unsafe because it accesses a raw pointer which could contain arbitrary data
*/
void ;