pub struct MmdbHeader {
pub node_count: u32,
pub record_size: RecordSize,
pub ip_version: IpVersion,
pub tree_size: usize,
}Expand description
MMDB file header - minimal heap usage
Contains only the essential information needed for IP lookups. Total heap usage: ~16 bytes.
Fields§
§node_count: u32Number of nodes in the search tree
record_size: RecordSizeRecord size in bits (24, 28, or 32)
ip_version: IpVersionIP version (4 or 6)
tree_size: usizeSize of the search tree in bytes
Implementations§
Trait Implementations§
Source§impl Clone for MmdbHeader
impl Clone for MmdbHeader
Source§fn clone(&self) -> MmdbHeader
fn clone(&self) -> MmdbHeader
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MmdbHeader
impl Debug for MmdbHeader
impl Copy for MmdbHeader
Auto Trait Implementations§
impl Freeze for MmdbHeader
impl RefUnwindSafe for MmdbHeader
impl Send for MmdbHeader
impl Sync for MmdbHeader
impl Unpin for MmdbHeader
impl UnwindSafe for MmdbHeader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more