Skip to main content

extend_with_replace

Function extend_with_replace 

Source
pub fn extend_with_replace<T>(cfg: &mut T, value: T, _strategy: ExtendStrategy)
Expand description

Helper for derive_deftly(TorConfig): implements ExtendBuilder for a field by replacing one value with another.

This is the default behavior for non-subbuilder fields.