pub struct TrieHeader { /* private fields */ }Expand description
On-disk trie objects
Implementations§
Source§impl TrieHeader
impl TrieHeader
Sourcepub const fn new() -> Self
pub const fn new() -> Self
Creates a new TrieHeader.
Sourcepub fn signature(&self) -> &str
pub fn signature(&self) -> &str
Gets the TrieHeader object signature.
Sourcepub const fn tool_version(&self) -> u64
pub const fn tool_version(&self) -> u64
Version of the tool which created the file.
Sourcepub fn set_tool_version(&mut self, val: u64)
pub fn set_tool_version(&mut self, val: u64)
Sets the version of the tool which created the file.
Sourcepub fn with_tool_version(self, val: u64) -> Self
pub fn with_tool_version(self, val: u64) -> Self
Builder function that sets the version of the tool which created the file.
Sourcepub fn set_file_size(&mut self, val: u64)
pub fn set_file_size(&mut self, val: u64)
Sets the file size of the database file.
Sourcepub fn with_file_size(self, val: u64) -> Self
pub fn with_file_size(self, val: u64) -> Self
Builder function that sets the file size of the database file.
Sourcepub const fn header_size(&self) -> u64
pub const fn header_size(&self) -> u64
Gets the header size of the TrieHeader.
Sourcepub fn set_header_size(&mut self, val: u64)
pub fn set_header_size(&mut self, val: u64)
Sets the header size of the TrieHeader.
Sourcepub fn with_header_size(self, val: u64) -> Self
pub fn with_header_size(self, val: u64) -> Self
Builder function that sets the header size of the TrieHeader.
Sourcepub fn set_node_size(&mut self, val: u64)
pub fn set_node_size(&mut self, val: u64)
Sets the node size of the database file.
Sourcepub fn with_node_size(self, val: u64) -> Self
pub fn with_node_size(self, val: u64) -> Self
Builder function that sets the node size of the database file.
Sourcepub const fn child_entry_size(&self) -> u64
pub const fn child_entry_size(&self) -> u64
Gets the child entry size of the database file.
Sourcepub fn set_child_entry_size(&mut self, val: u64)
pub fn set_child_entry_size(&mut self, val: u64)
Sets the child entry size of the database file.
Sourcepub fn with_child_entry_size(self, val: u64) -> Self
pub fn with_child_entry_size(self, val: u64) -> Self
Builder function that sets child entry size of the database file.
Sourcepub const fn value_entry_size(&self) -> u64
pub const fn value_entry_size(&self) -> u64
Gets the value entry size of the database file.
Sourcepub fn set_value_entry_size(&mut self, val: u64)
pub fn set_value_entry_size(&mut self, val: u64)
Sets the value entry size of the database file.
Sourcepub fn with_value_entry_size(self, val: u64) -> Self
pub fn with_value_entry_size(self, val: u64) -> Self
Builder function that sets value entry size of the database file.
Sourcepub const fn nodes_root_off(&self) -> u64
pub const fn nodes_root_off(&self) -> u64
Gets the offset of the root trie node.
Sourcepub fn set_nodes_root_off(&mut self, val: u64)
pub fn set_nodes_root_off(&mut self, val: u64)
Sets the offset of the root trie node.
Sourcepub fn with_nodes_root_off(self, val: u64) -> Self
pub fn with_nodes_root_off(self, val: u64) -> Self
Builder function that sets the offset of the root trie node.
Sourcepub fn set_nodes_len(&mut self, val: u64)
pub fn set_nodes_len(&mut self, val: u64)
Sets the size of the nodes section.
Sourcepub fn with_nodes_len(self, val: u64) -> Self
pub fn with_nodes_len(self, val: u64) -> Self
Builder function that sets the size of the nodes section.
Sourcepub const fn strings_len(&self) -> u64
pub const fn strings_len(&self) -> u64
Gets the size of the strings section.
Sourcepub fn set_strings_len(&mut self, val: u64)
pub fn set_strings_len(&mut self, val: u64)
Sets the size of the strings section.
Sourcepub fn with_strings_len(self, val: u64) -> Self
pub fn with_strings_len(self, val: u64) -> Self
Builder function that sets the size of the strings section.
Trait Implementations§
Source§impl Clone for TrieHeader
impl Clone for TrieHeader
Source§fn clone(&self) -> TrieHeader
fn clone(&self) -> TrieHeader
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more