[][src]Function rust_ipv8::util::as_fixed_size

pub fn as_fixed_size<T>(data: &[u8]) -> Result<&T, Box<dyn Error>> where
    T: FromBytes

Helper function types which have the FromBytes trait to be converted to some fixed size variant. Doesn't copy.