pub struct SemanticQueryBuilder { /* private fields */ }Expand description
Builder for constructing complex semantic queries
Implementations§
Source§impl SemanticQueryBuilder
impl SemanticQueryBuilder
Sourcepub fn with_concept(self, concept: GameConcept) -> Self
pub fn with_concept(self, concept: GameConcept) -> Self
Add a game concept to analyze
Sourcepub fn with_logic(self, logic: QueryLogic) -> Self
pub fn with_logic(self, logic: QueryLogic) -> Self
Set query logic (AND/OR)
Sourcepub fn with_thresholds(self, thresholds: SemanticThresholds) -> Self
pub fn with_thresholds(self, thresholds: SemanticThresholds) -> Self
Set custom thresholds
Sourcepub fn with_component_filter(self, filter: ComponentFilter) -> Self
pub fn with_component_filter(self, filter: ComponentFilter) -> Self
Add component filter
Sourcepub fn build(self) -> Result<SemanticQueryResult>
pub fn build(self) -> Result<SemanticQueryResult>
Build the semantic query
Trait Implementations§
Source§impl Clone for SemanticQueryBuilder
impl Clone for SemanticQueryBuilder
Source§fn clone(&self) -> SemanticQueryBuilder
fn clone(&self) -> SemanticQueryBuilder
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for SemanticQueryBuilder
impl Debug for SemanticQueryBuilder
Auto Trait Implementations§
impl Freeze for SemanticQueryBuilder
impl RefUnwindSafe for SemanticQueryBuilder
impl Send for SemanticQueryBuilder
impl Sync for SemanticQueryBuilder
impl Unpin for SemanticQueryBuilder
impl UnsafeUnpin for SemanticQueryBuilder
impl UnwindSafe for SemanticQueryBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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