Struct piston_meta::bootstrap::Convert
[−]
[src]
pub struct Convert<'a> { /* fields omitted */ }
Stores state when converting from meta data.
Methods
impl<'a> Convert<'a>
[src]
fn new(data: &'a [Range<MetaData>]) -> Convert<'a>
Creates a new Convert
.
fn remaining_data_len(&self) -> usize
Returns the length of remaining data.
fn subtract(self, rhs: Convert) -> Range
Returns the difference in offset.
fn source(self, rhs: Convert) -> Option<Range>
Returns the subtracted range in source (union of meta data ranges).
fn update(&mut self, range: Range)
Updates with parsed range.
fn start_node(&self, name: &str) -> Result<Range, ()>
Reads start node.
fn end_node(&self, name: &str) -> Result<Range, ()>
Reads end node.
fn ignore(&self) -> Range
Ignores next item. If this is the start of a node, it ignores all items to the end node.
fn meta_string(&self, name: &str) -> Result<(Range, Arc<String>), ()>
Reads string.
fn meta_f64(&self, name: &str) -> Result<(Range, f64), ()>
Reads f64.
fn meta_bool(&self, name: &str) -> Result<(Range, bool), ()>
Reads bool.
Trait Implementations
impl<'a> Copy for Convert<'a>
[src]
impl<'a> Clone for Convert<'a>
[src]
fn clone(&self) -> Convert<'a>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more