pub fn pack<T>(v: T) -> Option<Vec<u8>> where T: ToPrimitive,
Automatically packs an integer in a context sensitive way. Returns None if the passed integer is too large to be casted down.
context
None