trie_rs::inc_search

Type Alias Position

Source
pub type Position = LoudsNodeNum;
Expand description

Search position in the trie.

§Why do this?

“Position” is more descriptive for incremental search purposes, and without it a user would have to explicitly depend on louds-rs.

Aliased Type§

struct Position(pub u64);

Fields§

§0: u64

Trait Implementations§

Source§

impl<'a, L, V> From<IncSearch<'a, L, V>> for Position

Retrieve the position the search is on. Useful for hanging on to a search without having to fight the borrow checker because its borrowing a trie.

Source§

fn from(inc_search: IncSearch<'a, L, V>) -> Self

Converts to this type from the input type.
Source§

impl Clone for LoudsNodeNum

Source§

fn clone(&self) -> LoudsNodeNum

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for LoudsNodeNum

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl PartialEq for LoudsNodeNum

Source§

fn eq(&self, other: &LoudsNodeNum) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl Copy for LoudsNodeNum

Source§

impl Eq for LoudsNodeNum

Source§

impl StructuralPartialEq for LoudsNodeNum