pub trait Buildable: Sizedwhere
Self: BoulderBase,{
type Builder: Builder<Result = Self>;
// Required method
fn builder() -> Self::Builder;
}
Expand description
A type that has an associated default Builder
.
This trait is implemented via the Buildable
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.
Required Associated Types§
Required Methods§
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.