EncodableDataComponent

Trait EncodableDataComponent 

pub trait EncodableDataComponent:
    Send
    + Sync
    + Any {
    // Required methods
    fn encode(&self, buf: &mut Vec<u8>) -> Result<(), Error>;
    fn crc_hash(&self, registries: &RegistryHolder) -> Checksum;
    fn clone(&self) -> Box<dyn EncodableDataComponent>;
    fn eq(&self, other: Box<dyn EncodableDataComponent>) -> bool;
}

Required Methods§

fn encode(&self, buf: &mut Vec<u8>) -> Result<(), Error>

fn crc_hash(&self, registries: &RegistryHolder) -> Checksum

fn clone(&self) -> Box<dyn EncodableDataComponent>

fn eq(&self, other: Box<dyn EncodableDataComponent>) -> bool

Implementors§

§

impl<T> EncodableDataComponent for T
where T: DataComponentTrait + Clone + AzaleaWrite + AzaleaRead + PartialEq,