pub trait Builder: Default {
type Entity: Entity;
const NAME: &'static str;
// Required methods
fn expected_length(&self) -> usize;
fn write<W>(&self, writer: &mut W) -> Result<(), Error>
where W: Write;
fn build(&self) -> Self::Entity;
}
Required Associated Constants§
Required Associated Types§
Required Methods§
fn expected_length(&self) -> usize
fn write<W>(&self, writer: &mut W) -> Result<(), Error>where
W: Write,
fn build(&self) -> Self::Entity
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.