Trait Shard

Source
pub trait Shard:
    Clone
    + AsRef<[u8]>
    + AsMut<[u8]>
    + AsMut<[[u8; 2]]>
    + AsRef<[[u8; 2]]>
    + FromIterator<[u8; 2]>
    + From<Vec<u8>> {
    type Inner;

    // Required method
    fn into_inner(self) -> Self::Inner;
}

Required Associated Types§

Required Methods§

Source

fn into_inner(self) -> Self::Inner

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl<T> Shard for T
where T: Clone + AsRef<[u8]> + AsMut<[u8]> + AsMut<[[u8; 2]]> + AsRef<[[u8; 2]]> + FromIterator<[u8; 2]> + From<Vec<u8>>,

Source§

type Inner = T