Skip to content

Like a builder but heavier.

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT
Notifications You must be signed in to change notification settings

eds-collabora/boulder-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

boulder - like a builder but heavier

This provides two main traits and associated derive macros:

  • Buildable, which lets you set complex default values, and then customise only the fields of interest for a given instance.
  • Generatable which lets you set default sequences for each field, and then override only the particular sequences of interest.

These traits pass-through Option<T>, Cell<T>, RefCell<T>, Rc<T>, Arc<T> and Mutex<T> in the sense deriving Generatable or Buildable for T automatically gives you default generators and builders for all of these simple wrappers.

If you enable the persian-rug feature, you get two new traits:

These traits pass-through all the same all the same wrappers as the base traits, but additionally Proxy<T>.

License

This crate is made available under either an Apache-2.0 or an MIT license.

About

Like a builder but heavier.

Resources

License

Apache-2.0, MIT licenses found

Licenses found

Apache-2.0
LICENSE-APACHE
MIT
LICENSE-MIT

Stars

Watchers

Forks

Packages

No packages published

Languages