pub enum CompressionLevel {
Light,
Standard,
Medium,
Maximum,
Hard,
}
Expand description
Compression level for AST compaction
Variants§
Light
Light: 70% compression - preserve more details
Standard
Standard: 85% compression - balanced
Medium
Medium: alias for Standard
Maximum
Maximum: 95% compression - extreme compaction
Hard
Hard: alias for Maximum
Implementations§
Source§impl CompressionLevel
impl CompressionLevel
Sourcepub const fn target_ratio(&self) -> f64
pub const fn target_ratio(&self) -> f64
Get target compression ratio
Sourcepub const fn preserve_comments(&self) -> bool
pub const fn preserve_comments(&self) -> bool
Should preserve comments
Sourcepub const fn preserve_implementation(&self) -> bool
pub const fn preserve_implementation(&self) -> bool
Should preserve implementation details
Sourcepub const fn preserve_private(&self) -> bool
pub const fn preserve_private(&self) -> bool
Should preserve private members
Trait Implementations§
Source§impl Clone for CompressionLevel
impl Clone for CompressionLevel
Source§fn clone(&self) -> CompressionLevel
fn clone(&self) -> CompressionLevel
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 CompressionLevel
impl Debug for CompressionLevel
Source§impl PartialEq for CompressionLevel
impl PartialEq for CompressionLevel
impl Copy for CompressionLevel
impl Eq for CompressionLevel
impl StructuralPartialEq for CompressionLevel
Auto Trait Implementations§
impl Freeze for CompressionLevel
impl RefUnwindSafe for CompressionLevel
impl Send for CompressionLevel
impl Sync for CompressionLevel
impl Unpin for CompressionLevel
impl UnwindSafe for CompressionLevel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.