Struct piston_meta_search::Search [] [src]

pub struct Search<'a> {
    pub range: Option<Range>,
    pub data: &'a [Range<MetaData>],
}

Used to search through meta data.

Fields

The previous range of search. Used in errors if there is no meta data left.

The data to search.

Methods

impl<'a> Search<'a>
[src]

Creates a new search.

Searches anywhere in meta data for a string. Calls closure on the first match.

Searches anywhere in meta data for a f64. Calls closure on the first match.

Searches anywhere in meta data for a bool. Calls closure on the first match.

Searches anywhere in meta data for a node. Calls closure on the first match.

Searches anywhere in meta data for an end node. Calls closure on the first match.

Reads next as bool value.

Reads next as f64 value.

Reads next as string value.

Reads next as node.

Reads next as end node.