pub fn with_dictionary(dictionary: BTreeSet<String>) -> Self {
        let mut enc_dict = Self::default();

        enc_dict.entries.reserve_exact(dictionary.len());
        for mut entry in dictionary {
            entry.shrink_to_fit(); // ensure entry is minimally sized
            enc_dict.entries.push(Some(entry));
        }

        enc_dict
    }
/// Initialises a Dictionary encoding with a set of logical values.
/// Creating an encoding using `with_dictionary` ensures that the dictionary
/// is in the correct order, and will allow values to be inserted with any
/// value in the dictionary.
///
/// Callers are not required to provide a logical NULL value as part of the
/// dictionary. The encoding already reserves a representation for that.
Initialises a Dictionary encoding with a set of logical values.
Creating an encoding using `with_dictionary` ensures that the dictionary
is in the correct order, and will allow values to be inserted with any
value in the dictionary.

Callers are not required to provide a logical NULL value as part of the
dictionary. The encoding already reserves a representation for that.
Initialises a Dictionary encoding with a set of logical values . Creating an encoding using ` with_dictionary ` ensures that the dictionary is in the correct order and will allow values to be inserted with any value in the dictionary . Callers are not required to provide a logical NULL value as part of the dictionary . The encoding already reserves a representation for that .
pub fn with_dictionary(dictionary: BTreeSet<String>) -> Self {
        let mut enc_dict = Self::default();
        enc_dict.entries.reserve_exact(dictionary.len());
        for mut entry in dictionary {
            entry.shrink_to_fit(); // ensure entry is minimally sized
            enc_dict.entries.push(Some(entry));
        }
        enc_dict
    }
pub fn with_dictionary ( dictionary : BTreeSet < String > ) -> Self { let mut enc_dict = Self :: default ( ) ; enc_dict . entries . reserve_exact ( dictionary . len ( ) ) ; for mut entry in dictionary { entry . shrink_to_fit ( ) ; // ensure entry is minimally sized enc_dict . entries . push ( Some ( entry ) ) ; } enc_dict }
Initialises a Dictionary encoding with a set of logical values.
Initialises a Dictionary encoding with a set of logical values .
dictionary
BTreeSet<String>
dictionary
BTreeSet<String>