Skip to main content

encode

Function encode 

Source
pub fn encode<Ctx, E>(
    ctx: Ctx,
    errors: &E,
    order: ByteOrder,
    bom: bool,
) -> Result<Vec<u8>, Ctx::Error>
where Ctx: EncodeContext, E: EncodeErrorHandler<Ctx>,