Skip to main content

builder_with

Macro builder_with 

Source
macro_rules! builder_with {
    ($field:ident, $type:ty) => { ... };
    ($field:ident, $type:ty, $doc:expr) => { ... };
}
Expand description

Implement a builder pattern with_* prefix setter method.

§Example

impl Config {
    mabi_core::builder_with!(name, String);  // Creates with_name()
}