[][src]Trait hson::Query

pub trait Query {
    fn query(&mut self, q: &str) -> Result<Vec<u64>, Error>;
fn query_nodes(&mut self, q: &str) -> Result<Vec<&Node>, Error>;
fn query_on(
        &mut self,
        node_id: u64,
        q: &str,
        recursive: bool
    ) -> Result<Vec<u64>, Error>;
fn query_on_nodes(
        &mut self,
        node: &Node,
        q: &str,
        recursive: bool
    ) -> Result<Vec<&Node>, Error>; }

Required methods

fn query(&mut self, q: &str) -> Result<Vec<u64>, Error>

fn query_nodes(&mut self, q: &str) -> Result<Vec<&Node>, Error>

fn query_on(
    &mut self,
    node_id: u64,
    q: &str,
    recursive: bool
) -> Result<Vec<u64>, Error>

fn query_on_nodes(
    &mut self,
    node: &Node,
    q: &str,
    recursive: bool
) -> Result<Vec<&Node>, Error>

Loading content...

Implementors

impl Query for Hson[src]

fn query(&mut self, q: &str) -> Result<Vec<u64>, Error>[src]

Public method to query the data

fn query_nodes(&mut self, q: &str) -> Result<Vec<&Node>, Error>[src]

Same as query but return nodes structures instead of their ids

fn query_on(
    &mut self,
    node_id: u64,
    q: &str,
    recursive: bool
) -> Result<Vec<u64>, Error>
[src]

Same as query but constrain the search in the provided node's childs only

fn query_on_nodes(
    &mut self,
    node: &Node,
    q: &str,
    recursive: bool
) -> Result<Vec<&Node>, Error>
[src]

Same as query_on but return nodes structures instead of their ids

Loading content...