pub struct IdentityPreprocessor { /* private fields */ }Expand description
A preprocessor that passes content through unchanged.
Useful for testing the preprocessing pipeline without depending on any transformation engine.
Implementations§
Source§impl IdentityPreprocessor
impl IdentityPreprocessor
Sourcepub fn with_extension(ext: &str) -> Self
pub fn with_extension(ext: &str) -> Self
Create an identity preprocessor with a custom extension.
Trait Implementations§
Source§impl Default for IdentityPreprocessor
impl Default for IdentityPreprocessor
Source§impl Preprocessor for IdentityPreprocessor
impl Preprocessor for IdentityPreprocessor
Source§fn transform_type(&self) -> TransformType
fn transform_type(&self) -> TransformType
The safety model for this transformation.
Source§fn matches_extension(&self, filename: &str) -> bool
fn matches_extension(&self, filename: &str) -> bool
Whether this preprocessor handles a file with the given name.
Source§fn stripped_name(&self, filename: &str) -> String
fn stripped_name(&self, filename: &str) -> String
Strip the preprocessor extension to get the logical filename.
e.g.
"config.toml.tmpl" → "config.toml".Auto Trait Implementations§
impl Freeze for IdentityPreprocessor
impl RefUnwindSafe for IdentityPreprocessor
impl Send for IdentityPreprocessor
impl Sync for IdentityPreprocessor
impl Unpin for IdentityPreprocessor
impl UnsafeUnpin for IdentityPreprocessor
impl UnwindSafe for IdentityPreprocessor
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