Skip to main content

PackIndexByteSource

Trait PackIndexByteSource 

Source
pub trait PackIndexByteSource:
    Debug
    + Send
    + Sync {
    // Required method
    fn as_bytes(&self) -> &[u8] ;
}

Required Methods§

Source

fn as_bytes(&self) -> &[u8]

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<T> PackIndexByteSource for T
where T: AsRef<[u8]> + Debug + Send + Sync + ?Sized,