pub struct BinaryTrie { /* private fields */ }Implementations§
Source§impl BinaryTrie
impl BinaryTrie
pub fn insert_n(&mut self, x: u32, n: u64) -> u64
Sourcepub fn count_less(&self, x: u32) -> u64
pub fn count_less(&self, x: u32) -> u64
x 未満の値のカウント
Sourcepub fn count_more(&self, x: u32) -> u64
pub fn count_more(&self, x: u32) -> u64
x を超える値のカウント
pub fn size(&self) -> u64
pub fn xth_element(&self, xth: u64) -> Option<u32>
pub fn lower_bound(&self, x: u32) -> Option<u32>
pub fn upper_bound(&self, x: u32) -> Option<u32>
Trait Implementations§
Source§impl Clone for BinaryTrie
impl Clone for BinaryTrie
Source§fn clone(&self) -> BinaryTrie
fn clone(&self) -> BinaryTrie
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 BinaryTrie
impl Debug for BinaryTrie
Source§impl Default for BinaryTrie
impl Default for BinaryTrie
Source§fn default() -> BinaryTrie
fn default() -> BinaryTrie
Returns the “default value” for a type. Read more
Source§impl PartialEq for BinaryTrie
impl PartialEq for BinaryTrie
impl Eq for BinaryTrie
impl StructuralPartialEq for BinaryTrie
Auto Trait Implementations§
impl Freeze for BinaryTrie
impl RefUnwindSafe for BinaryTrie
impl Send for BinaryTrie
impl Sync for BinaryTrie
impl Unpin for BinaryTrie
impl UnwindSafe for BinaryTrie
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