Trait objects::Builder

source ·
pub trait Builder {
    type Error;

    // Required methods
    fn mime_type(&self) -> String;
    fn build<W: Write>(&self, buf: W) -> Result<(), Self::Error>;
}
Expand description

A builder type can build a Document Type object into raw bytes of encoded data.

Required Associated Types§

Required Methods§

source

fn mime_type(&self) -> String

source

fn build<W: Write>(&self, buf: W) -> Result<(), Self::Error>

Builds self into raw bytes of the specific Document Type.

Object Safety§

This trait is not object safe.

Implementors§