Struct compacts_bits::Vec64 [] [src]

pub struct Vec64 { /* fields omitted */ }

Map of Vec32.

Methods

impl Vec64
[src]

Return true if the value exists.

Examples

use compacts_bits::Vec64;
let mut bits = Vec64::new();
assert!(!bits.contains(1 << 50));
bits.insert(1 << 50);
assert!(bits.contains(1 << 50));
assert_eq!(1, bits.count_ones());

Return true if the value doesn't exists and inserted successfuly.

Examples

use compacts_bits::Vec64;
let mut bits = Vec64::new();
assert!(bits.insert(1 << 50));
assert!(!bits.insert(1 << 50));
assert_eq!(1, bits.count_ones());

Return true if the value exists and removed successfuly.

Examples

use compacts_bits::Vec64;
let mut bits = Vec64::new();
assert!(bits.insert(1 << 60));
assert!(bits.remove(1 << 60));
assert_eq!(0, bits.count_ones());

Trait Implementations

impl Intersection<Vec64> for Vec64
[src]

impl<'r> Intersection<&'r Vec64> for Vec64
[src]

impl<'r1, 'r2> Intersection<&'r2 Vec64> for &'r1 Vec64
[src]

impl Union<Vec64> for Vec64
[src]

impl<'r> Union<&'r Vec64> for Vec64
[src]

impl<'r1, 'r2> Union<&'r2 Vec64> for &'r1 Vec64
[src]

impl Difference<Vec64> for Vec64
[src]

impl<'r> Difference<&'r Vec64> for Vec64
[src]

impl<'r1, 'r2> Difference<&'r2 Vec64> for &'r1 Vec64
[src]

impl SymmetricDifference<Vec64> for Vec64
[src]

impl<'r> SymmetricDifference<&'r Vec64> for Vec64
[src]

impl<'r1, 'r2> SymmetricDifference<&'r2 Vec64> for &'r1 Vec64
[src]

impl<'r> IntersectionWith<&'r Vec64> for Vec64
[src]

impl<'r> UnionWith<&'r Vec64> for Vec64
[src]

impl<'r> DifferenceWith<&'r Vec64> for Vec64
[src]

impl<'r> SymmetricDifferenceWith<&'r Vec64> for Vec64
[src]

impl Clone for Vec64
[src]

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

impl Debug for Vec64
[src]

Formats the value using the given formatter.

impl Default for Vec64
[src]

Returns the "default value" for a type. Read more

impl Index<u64> for Vec64
[src]

The returned type after indexing

The method for the indexing (container[index]) operation

impl<'a> FromIterator<&'a u64> for Vec64
[src]

Creates a value from an iterator. Read more

impl<T: AsRef<[u64]>> From<T> for Vec64
[src]

Performs the conversion.

impl Rank<u64> for Vec64
[src]

Hamming Weight or Population Count.

SIZE: u128 = 1 << 64

Returns occurences of non-zero bit in [0,i].

Returns occurences of zero bit in [0,i].

impl Select1<u64> for Vec64
[src]

Returns the position of 'c+1'th appearance of non-zero bit.

impl Select0<u64> for Vec64
[src]

Returns the position of 'c+1'th appearance of zero bit.