shrinkwrap 0.6.0

Automates the wrapping and nesting of additional variations for some or all of a struct's fields.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use crate::{
    nest::NestValueType,
    transform::Transform,
};

/// # Generic parameters
///
/// - `T`: The source value type
/// - `V`: The resulting type used in the nest (must implement [`NestValueType`])
pub trait BuildNestValue<T, V>: Transform
where
    V: NestValueType
{
    fn build_nest_value(&self, source: &T, options: &Self::Options) -> V;
}