Closed bvssvni closed 8 years ago
Currently there are a bunch of methods taking &[Range<MetaData>], offset: usize. This could be put in a struct Convert to encapsulate the state. Could use same pattern as in the read_token library.
&[Range<MetaData>], offset: usize
Convert
pub struct Convert<'a> { data: &'a [Range<MetaData>], offset: usize, }
Move functions to methods on Convert:
Use Convert internally in convert:
convert
Currently there are a bunch of methods taking
&[Range<MetaData>], offset: usize
. This could be put in a structConvert
to encapsulate the state. Could use same pattern as in the read_token library.Move functions to methods on
Convert
:Use
Convert
internally inconvert
: