You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/maxminddb/lib.rs
+56-41Lines changed: 56 additions & 41 deletions
Original file line number
Diff line number
Diff line change
@@ -76,47 +76,6 @@ pub struct Metadata {
76
76
pubrecord_size:u16,
77
77
}
78
78
79
-
/// A reader for the MaxMind DB format. The lifetime `'data` is tied to the lifetime of the underlying buffer holding the contents of the database file.
80
-
#[derive(Debug)]
81
-
pubstructReader<S:AsRef<[u8]>>{
82
-
buf:S,
83
-
pubmetadata:Metadata,
84
-
ipv4_start:usize,
85
-
pointer_base:usize,
86
-
}
87
-
88
-
#[cfg(feature = "mmap")]
89
-
impl<'de>Reader<Mmap>{
90
-
/// Open a MaxMind DB database file by memory mapping it.
91
-
///
92
-
/// # Example
93
-
///
94
-
/// ```
95
-
/// let reader = maxminddb::Reader::open_mmap("test-data/test-data/GeoIP2-City-Test.mmdb").unwrap();
/// A reader for the MaxMind DB format. The lifetime `'data` is tied to the lifetime of the underlying buffer holding the contents of the database file.
164
+
#[derive(Debug)]
165
+
pubstructReader<S:AsRef<[u8]>>{
166
+
buf:S,
167
+
pubmetadata:Metadata,
168
+
ipv4_start:usize,
169
+
pointer_base:usize,
170
+
}
171
+
172
+
#[cfg(feature = "mmap")]
173
+
impl<'de>Reader<Mmap>{
174
+
/// Open a MaxMind DB database file by memory mapping it.
175
+
///
176
+
/// # Example
177
+
///
178
+
/// ```
179
+
/// let reader = maxminddb::Reader::open_mmap("test-data/test-data/GeoIP2-City-Test.mmdb").unwrap();
0 commit comments