pub struct TransformConfig {
    pub mode: Mode,
    pub preserve_comments: bool,
    pub cache_enabled: bool,
}Expand description
Configuration for transformation
ARCHITECTURE: This is injected into transform functions (no global state).
Fields§
§mode: ModeTransformation mode
preserve_comments: boolWhether to preserve structural comments
If true, keeps comments that describe structure (e.g., JSDoc, docstrings). If false, strips all comments.
cache_enabled: boolWhether to use caching
NOTE: This field is reserved for future library users who want to implement their own caching. The CLI (rskim binary) implements caching separately and ignores this field. See: crates/rskim/src/cache.rs
Implementations§
Source§impl TransformConfig
 
impl TransformConfig
Sourcepub fn preserve_comments(self, preserve: bool) -> Self
 
pub fn preserve_comments(self, preserve: bool) -> Self
Builder: Set comment preservation
Sourcepub fn with_cache(self, enabled: bool) -> Self
 
pub fn with_cache(self, enabled: bool) -> Self
Builder: Enable caching
Trait Implementations§
Source§impl Clone for TransformConfig
 
impl Clone for TransformConfig
Source§fn clone(&self) -> TransformConfig
 
fn clone(&self) -> TransformConfig
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 TransformConfig
 
impl Debug for TransformConfig
Auto Trait Implementations§
impl Freeze for TransformConfig
impl RefUnwindSafe for TransformConfig
impl Send for TransformConfig
impl Sync for TransformConfig
impl Unpin for TransformConfig
impl UnwindSafe for TransformConfig
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