macro_rules! impl_backend_builder { ($backend:ty, $builder:ty) => { ... }; }
Macro to implement the common new() and builder() pattern for backends.
new()
builder()
impl_backend_builder!(MyBackend, MyBackendBuilder); // Expands to: // impl MyBackend { // pub fn new() -> Self { Self::builder().build() } // pub fn builder() -> MyBackendBuilder { MyBackendBuilder::default() } // }