Skip to main content

NoOpGroupNavigator

Struct NoOpGroupNavigator 

Source
pub struct NoOpGroupNavigator;
Expand description

A no-op group navigator that returns empty results for all queries.

Trait Implementations§

Source§

impl GroupNavigator for NoOpGroupNavigator

Source§

fn find_segments_in_group( &self, _: &str, _: &[&str], _: usize, ) -> Vec<OwnedSegment>

Find all segments with the given tag within a specific group instance. Read more
Source§

fn find_segments_with_qualifier_in_group( &self, _: &str, _: usize, _: &str, _: &[&str], _: usize, ) -> Vec<OwnedSegment>

Find segments matching a tag + qualifier within a group instance. Read more
Source§

fn group_instance_count(&self, _: &[&str]) -> usize

Count repetitions of a group at the given path.
Source§

fn has_any_segment_in_group( &self, _group_path: &[&str], _instance_index: usize, ) -> bool

Check if a group instance has any segments at all. Read more
Source§

fn child_group_instance_count( &self, parent_path: &[&str], parent_instance: usize, child_group_id: &str, ) -> usize

Count repetitions of a child group within a specific parent group instance. Read more
Source§

fn find_segments_in_child_group( &self, segment_id: &str, parent_path: &[&str], parent_instance: usize, child_group_id: &str, child_instance: usize, ) -> Vec<OwnedSegment>

Find all segments with the given tag within a child group instance. Read more
Source§

fn extract_value_in_group( &self, segment_id: &str, element_index: usize, component_index: usize, group_path: &[&str], instance_index: usize, ) -> Option<String>

Extract a single value from the first matching segment in a group instance. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.