from_bytestring

Function from_bytestring 

Source
fn from_bytestring(bytes: &[u8]) -> Vec<u8> 
Examples found in repository?
crates/competitive/src/tools/coding.rs (line 369)
365    fn deserialize_from_bytes(bytes: &[u8]) -> Self
366    where
367        Self: Sized,
368    {
369        let bytes = from_bytestring(bytes);
370        let bytes = huffman_decoding(&bytes);
371        Self::deserialize(&mut bytes.as_slice().iter().cloned())
372    }