pub trait QuerySpec<'query> {
// Required methods
fn states(&self) -> &[Transition<'query>];
fn queries(&self) -> &[QuerySection<'query>];
fn exit_at_section_end(&self) -> Option<QuerySectionId>;
// Provided methods
fn requires_text_content(&self) -> bool { ... }
fn get_transition(&self, state: TransitionId) -> &Transition<'query> { ... }
fn get_section_selection_kind(
&self,
section_index: QuerySectionId,
) -> SelectionKind { ... }
fn get_selection(
&self,
section_index: QuerySectionId,
) -> &QuerySection<'query> { ... }
fn is_descendant(&self, state: TransitionId) -> bool { ... }
fn is_save_point(&self, position: &Position) -> bool { ... }
fn is_last_save_point(&self, position: &Position) -> bool { ... }
fn children(
&'query self,
position: &Position,
) -> Option<impl Iterator<Item = Position>>
where Self: Sized { ... }
}Required Methods§
fn states(&self) -> &[Transition<'query>]
fn queries(&self) -> &[QuerySection<'query>]
fn exit_at_section_end(&self) -> Option<QuerySectionId>
Provided Methods§
fn requires_text_content(&self) -> bool
fn get_transition(&self, state: TransitionId) -> &Transition<'query>
fn get_section_selection_kind( &self, section_index: QuerySectionId, ) -> SelectionKind
fn get_selection(&self, section_index: QuerySectionId) -> &QuerySection<'query>
fn is_descendant(&self, state: TransitionId) -> bool
fn is_save_point(&self, position: &Position) -> bool
fn is_last_save_point(&self, position: &Position) -> bool
fn children(
&'query self,
position: &Position,
) -> Option<impl Iterator<Item = Position>>where
Self: Sized,
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".