shrinkwrap 0.7.0

Automates the wrapping and nesting of additional variations for some or all of a struct's fields.
Documentation
/// Marker trait for a transform impl
///
/// Additionally provides the type for the options parameter used in [`TransformToNest`](crate::TransformToNest) and [`ToNestWith`](crate::ToNestWith)
///
/// ## Example impl
///
/// ```
/// use shrinkwrap::Transform;
///
/// struct MyTransformOpts {
///     with_text: bool,
///     with_value: bool,
/// }
///
/// struct MyTransform {}
///
/// impl Transform for MyTransform {
///     type Options = MyTransformOpts;
/// }
/// ```
pub trait Transform {
    type Options: TransformOptions;
}

pub trait TransformOptions {
    fn include_optional_nest(&self, nest_id: &str) -> bool {
        let _ = nest_id;
        false
    }
}