Sha256: 45abbd99b2d5334ac6f1579f83fe2e705aea4516375b4160814409f0ddbc8599

Contents?: true

Size: 404 Bytes

Versions: 16

Compression:

Stored size: 404 Bytes

Contents

#[derive(Debug, PartialEq)]
pub enum Error {
    IncompleteNumber,
    Overflow,
}

/// Convert a list of numbers to a stream of bytes encoded with variable length encoding.
pub fn to_bytes(values: &[u32]) -> Vec<u8> {
    unimplemented!()
}

/// Given a stream of bytes, extract all numbers which are encoded in there.
pub fn from_bytes(bytes: &[u8]) -> Result<Vec<u32>, Error> {
    unimplemented!()
}

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
trackler-2.2.1.129 tracks/rust/exercises/variable-length-quantity/src/lib.rs
trackler-2.2.1.128 tracks/rust/exercises/variable-length-quantity/src/lib.rs
trackler-2.2.1.127 tracks/rust/exercises/variable-length-quantity/src/lib.rs
trackler-2.2.1.126 tracks/rust/exercises/variable-length-quantity/src/lib.rs
trackler-2.2.1.125 tracks/rust/exercises/variable-length-quantity/src/lib.rs
trackler-2.2.1.124 tracks/rust/exercises/variable-length-quantity/src/lib.rs
trackler-2.2.1.123 tracks/rust/exercises/variable-length-quantity/src/lib.rs
trackler-2.2.1.122 tracks/rust/exercises/variable-length-quantity/src/lib.rs
trackler-2.2.1.121 tracks/rust/exercises/variable-length-quantity/src/lib.rs
trackler-2.2.1.120 tracks/rust/exercises/variable-length-quantity/src/lib.rs
trackler-2.2.1.119 tracks/rust/exercises/variable-length-quantity/src/lib.rs
trackler-2.2.1.118 tracks/rust/exercises/variable-length-quantity/src/lib.rs
trackler-2.2.1.117 tracks/rust/exercises/variable-length-quantity/src/lib.rs
trackler-2.2.1.116 tracks/rust/exercises/variable-length-quantity/src/lib.rs
trackler-2.2.1.115 tracks/rust/exercises/variable-length-quantity/src/lib.rs
trackler-2.2.1.114 tracks/rust/exercises/variable-length-quantity/src/lib.rs