Trait boulder::BuildableWithPersianRug
source · [−]pub trait BuildableWithPersianRug<C>: Sized where
C: Context, {
type Builder: BuilderWithPersianRug<C, Result = Self>;
fn builder() -> Self::Builder;
}
Available on crate feature
persian-rug
only.Expand description
A type that has an associated default BuilderWithPersianRug
persian-rug is a crate that provides arena based
management for objects of different types. The natural reason to
derive this trait over Buildable
is when
your type belongs to a persian_rug::Context
.
This trait is implemented via the
BuildableWithPersianRug
derive macro. It cannot be
directly implemented because the library itself provides a blanket
implementation from a more complex underlying trait
MiniBuildable
, which is not currently documented.
This restriction may be removed in a future version; much of the complexity in this module stems from lacking generic associated types on stable.