pub enum BuildProfile {
Generic,
Eda,
Embedded,
Ml,
}Expand description
Pre-defined optimization profiles for the hexz build command.
Architectural intent: Simplifies the configuration surface for common use cases by grouping block size, compression, and alignment settings into named presets.
Variants§
Generic
Balanced defaults for general-purpose use (64 KiB blocks, LZ4/Zstd).
Eda
EDA/Text focus: smaller blocks (16 KiB) and dictionary compression.
Embedded
Embedded systems: high compression (Zstd), small blocks (4 KiB).
Ml
Machine Learning: columnar alignment, large blocks (e.g., 1 MiB) or matched to tensor sizes.
Implementations§
Source§impl BuildProfile
impl BuildProfile
Sourcepub fn block_size(&self) -> u32
pub fn block_size(&self) -> u32
Returns the recommended block size for this profile.
Sourcepub fn compression_algo(&self) -> &'static str
pub fn compression_algo(&self) -> &'static str
Returns the recommended compression algorithm for this profile. Note: This returns a string compatible with the CLI argument parser.
Sourcepub fn recommended_dict_training(&self) -> bool
pub fn recommended_dict_training(&self) -> bool
Whether this profile recommends dictionary training.
Trait Implementations§
Source§impl Clone for BuildProfile
impl Clone for BuildProfile
Source§fn clone(&self) -> BuildProfile
fn clone(&self) -> BuildProfile
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 BuildProfile
impl Debug for BuildProfile
Source§impl PartialEq for BuildProfile
impl PartialEq for BuildProfile
impl Copy for BuildProfile
impl Eq for BuildProfile
impl StructuralPartialEq for BuildProfile
Auto Trait Implementations§
impl Freeze for BuildProfile
impl RefUnwindSafe for BuildProfile
impl Send for BuildProfile
impl Sync for BuildProfile
impl Unpin for BuildProfile
impl UnwindSafe for BuildProfile
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