method
Change.Replacement
Replacement returns the replacement value and whether replacement is asked. Ridu calls it to apply a transform's result; callbacks return Keep, Set, or Clear.
Returns
The declared result.
(Value[T], bool)Full signature
func (change Change[T]) Replacement() (
Value[T],
bool,
)Related types
ChangeChange is what a field transform returns: Keep, Set, or Clear. Its zero value means Keep. Clear empties the callback's own logical value; it does not create an external patch command or durable scalar removal representation.
ValueValue carries an optional logical value. Its zero value is empty. For raw input, empty means omitted and Present(store.Null()) means explicit null. For typed scalars, empty is the portable empty state, not a durable absence encoding. T must follow its own ownership contract; this carrier does not deep-clone arbitrary mutable application values.