Skip to main content

Encoder

Trait Encoder 

Source
pub trait Encoder: Send + Sync {
    // Required methods
    fn encode_blob<W: Write + Send>(
        &self,
        blob: &Blob,
        writer: &mut W,
    ) -> Result<(), VctrlError>;
    fn encode_tree<W: Write + Send>(
        &self,
        tree: &Tree,
        writer: &mut W,
    ) -> Result<(), VctrlError>;
    fn encode_commit<W: Write + Send>(
        &self,
        commit: &Commit,
        writer: &mut W,
    ) -> Result<(), VctrlError>;
    fn encode_tag<W: Write + Send>(
        &self,
        tag: &Tag,
        writer: &mut W,
    ) -> Result<(), VctrlError>;
}

Required Methods§

Source

fn encode_blob<W: Write + Send>( &self, blob: &Blob, writer: &mut W, ) -> Result<(), VctrlError>

Source

fn encode_tree<W: Write + Send>( &self, tree: &Tree, writer: &mut W, ) -> Result<(), VctrlError>

Source

fn encode_commit<W: Write + Send>( &self, commit: &Commit, writer: &mut W, ) -> Result<(), VctrlError>

Source

fn encode_tag<W: Write + Send>( &self, tag: &Tag, writer: &mut W, ) -> Result<(), VctrlError>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§