A value to be cloned
Validation result with cloned value
Clone a data with detailed type validation.
Clones an instance following type T
, with detailed type validation. If the target
input
value or its member variable contains a class instance having methods,
those methods would not be cloned.
In such reason, when input
value is not matched with the type T
, it returns
IValidation.Failure value. Otherwise, there's no problem on the input
value, cloned data would be stored in data
property of the output
IValidation.Success instance.
A value to be cloned
Validation result with cloned value
Clone a data with detailed type validation.
Clones an instance following type
T
, with detailed type validation. If the targetinput
value or its member variable contains a class instance having methods, those methods would not be cloned.In such reason, when
input
value is not matched with the typeT
, it returns IValidation.Failure value. Otherwise, there's no problem on theinput
value, cloned data would be stored indata
property of the output IValidation.Success instance.