fn parse_variables(cursor: &mut Cursor) -> Result<Vec<Var>> {
    let num_variables = cursor.take_u16_le()?;
    let mut variables = Vec::with_capacity(num_variables as usize);
    for _ in 0..num_variables {
        let var = cursor.take_u16_le()?;
        variables.push(Var(var));
    }

    Ok(variables)
}
/// Parse a variable list.
///
/// A variable list is a 16-bit length-prefixed list of 16-bit variable ids.
/// TODO: Document the protocol properly.
Parse a variable list.
A variable list is a 16-bit length-prefixed list of 16-bit variable ids.
TODO: Document the protocol properly.
Parse a variable list . A variable list is a 16 - bit length - prefixed list of 16 - bit variable ids . TODO : Document the protocol properly .
fn parse_variables(cursor: &mut Cursor) -> Result<Vec<Var>> {
    let num_variables = cursor.take_u16_le()?;
    let mut variables = Vec::with_capacity(num_variables as usize);
    for _ in 0..num_variables {
        let var = cursor.take_u16_le()?;
        variables.push(Var(var));
    }
    Ok(variables)
}
fn parse_variables ( cursor : & mut Cursor ) -> Result < Vec < Var > > { let num_variables = cursor . take_u16_le ( ) ? ; let mut variables = Vec :: with_capacity ( num_variables as usize ) ; for _ in 0 .. num_variables { let var = cursor . take_u16_le ( ) ? ; variables . push ( Var ( var ) ) ; } Ok ( variables ) }
Parse a variable list.
Parse a variable list .
cursor
&mut Cursor
cursor
&mut Cursor