[][src]Struct binjs::io::entropy::dictionary::DictionaryBuilder

pub struct DictionaryBuilder { /* fields omitted */ }

A structure used to build a dictionary based on a sample of files.

Methods

impl DictionaryBuilder[src]

pub fn new(options: Options) -> DictionaryBuilder[src]

Create a new dictionary builder using paths of depth depth and windows of width width.

Use DictionaryBuilder::done to convert it into a Dictionary.

pub fn done(self, threshold: FilesContaining) -> DictionaryFamily<Instances>[src]

Return a dictionary containing all the paths collected and all the user-extensible content that appear in more than one file.

pub fn len(&self) -> usize[src]

pub fn files_containing(&self) -> &UserExtensibleData<FilesContaining>[src]

Access statistics on the number of files containing specific user-extensible values.

pub fn instances_in_file(&self) -> &UserExtensibleData<InstancesInFile>[src]

Access statistics on the number of instances of a specific user-extensible value.

Trait Implementations

impl TokenWriter for DictionaryBuilder[src]

type Data = [u8; 0]

The type of data generated by this writer. Typically some variant of Vec<u8>. Read more

impl<'a> TokenWriter for &'a mut DictionaryBuilder[src]

type Data = [u8; 0]

The type of data generated by this writer. Typically some variant of Vec<u8>. Read more

Auto Trait Implementations

impl !RefUnwindSafe for DictionaryBuilder

impl !Send for DictionaryBuilder

impl !Sync for DictionaryBuilder

impl Unpin for DictionaryBuilder

impl !UnwindSafe for DictionaryBuilder

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Downcast for T where
    T: Any
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]