pub struct QueryExecutor<'a> { /* private fields */ }Expand description
Query executor that matches selectors against a schematic view
Implementations§
Source§impl<'a> QueryExecutor<'a>
impl<'a> QueryExecutor<'a>
Sourcepub fn new(view: &'a SchematicView) -> Self
pub fn new(view: &'a SchematicView) -> Self
Create a new executor for a schematic view
Sourcepub fn execute(
&self,
selector: &Selector,
) -> Result<Vec<QueryMatch>, QueryError>
pub fn execute( &self, selector: &Selector, ) -> Result<Vec<QueryMatch>, QueryError>
Execute a selector and return matches
Auto Trait Implementations§
impl<'a> Freeze for QueryExecutor<'a>
impl<'a> RefUnwindSafe for QueryExecutor<'a>
impl<'a> Send for QueryExecutor<'a>
impl<'a> Sync for QueryExecutor<'a>
impl<'a> Unpin for QueryExecutor<'a>
impl<'a> UnwindSafe for QueryExecutor<'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