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
16
use crate::{
    nest::NestValueType,
    transform::Transform,
};

/// Fallible version of [`BuildNestValue`](crate::BuildNestValue)
///
/// See [`BuildNestValue`](crate::BuildNestValue) for more information
pub trait TryBuildNestValue<T, V>: Transform
where
    V: NestValueType
{
    type Error;

    fn try_build_nest_value(&self, source: &T, options: &Self::Options) -> Result<V, Self::Error>;
}