Struct piston_meta::bootstrap::Convert [] [src]

pub struct Convert<'a> {
    // some 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 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> 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

impl<'a> Copy for Convert<'a>
[src]