pub struct QueryProcessor { /* private fields */ }Expand description
QueryProcessor handles LiNo query parsing and execution Corresponds to AdvancedMixedQueryProcessor in C#
Implementations§
Source§impl QueryProcessor
impl QueryProcessor
pub fn with_auto_create_missing_references( self, auto_create_missing_references: bool, ) -> Self
Sourcepub fn process_query(
&self,
storage: &mut impl NamedTypeLinks,
query: &str,
) -> Result<Vec<(Option<Link>, Option<Link>)>>
pub fn process_query( &self, storage: &mut impl NamedTypeLinks, query: &str, ) -> Result<Vec<(Option<Link>, Option<Link>)>>
Processes a LiNo query and returns the list of changes.
Every scenario is simplified on the way out, matching the C# CLI, which
collects the raw handler calls and runs SimplifyChanges over them once
in Program.cs regardless of which branch of the processor produced
them.
Auto Trait Implementations§
impl Freeze for QueryProcessor
impl RefUnwindSafe for QueryProcessor
impl Send for QueryProcessor
impl Sync for QueryProcessor
impl Unpin for QueryProcessor
impl UnsafeUnpin for QueryProcessor
impl UnwindSafe for QueryProcessor
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