pub struct SchematicQuery<'a> { /* private fields */ }Expand description
Main query engine for schematic documents using SchQL
Implementations§
Source§impl<'a> SchematicQuery<'a>
impl<'a> SchematicQuery<'a>
Sourcepub fn new(view: &'a SchematicView) -> Self
pub fn new(view: &'a SchematicView) -> Self
Create a new query engine for a schematic view
Sourcepub fn query(&self, query_str: &str) -> Result<QueryResult, QueryError>
pub fn query(&self, query_str: &str) -> Result<QueryResult, QueryError>
Execute a query and return results
Sourcepub fn query_batch(
&self,
queries: &[&str],
) -> Vec<Result<QueryResult, QueryError>>
pub fn query_batch( &self, queries: &[&str], ) -> Vec<Result<QueryResult, QueryError>>
Execute multiple queries and return combined results
Auto Trait Implementations§
impl<'a> Freeze for SchematicQuery<'a>
impl<'a> RefUnwindSafe for SchematicQuery<'a>
impl<'a> Send for SchematicQuery<'a>
impl<'a> Sync for SchematicQuery<'a>
impl<'a> Unpin for SchematicQuery<'a>
impl<'a> UnwindSafe for SchematicQuery<'a>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more