[][src]Struct folia::query::Query

pub struct Query {
    pub action: Action,
    pub elementtype: Cmp<ElementType>,
    pub elementgroup: Cmp<ElementGroup>,
    pub contexttype: Cmp<ElementType>,
    pub set: Cmp<String>,
    pub class: Cmp<String>,
    pub processor: Cmp<String>,
    pub subset: Cmp<String>,
    pub annotator: Cmp<String>,
    pub annotatortype: Cmp<ProcessorType>,
    pub confidence: Cmp<f64>,
}

The query defines a search query on a FoLiA document with various matching criteria. It is turned into a Selector, the encoded variant, when given a document.

Fields

action: Actionelementtype: Cmp<ElementType>elementgroup: Cmp<ElementGroup>contexttype: Cmp<ElementType>set: Cmp<String>class: Cmp<String>processor: Cmp<String>subset: Cmp<String>annotator: Cmp<String>annotatortype: Cmp<ProcessorType>confidence: Cmp<f64>

Implementations

impl Query[src]

pub fn element(self, value: Cmp<ElementType>) -> Self[src]

Add a matching criterion on element type

pub fn contexttype(self, value: Cmp<ElementType>) -> Self[src]

Add a matching criterion on element type for the context

pub fn elementgroup(self, value: Cmp<ElementGroup>) -> Self[src]

Add a matching criterion on element group

pub fn set(self, value: Cmp<String>) -> Self[src]

Add a matching criterion on FoLiA set

pub fn class(self, value: Cmp<String>) -> Self[src]

Add a matching criterion on FoLiA class

pub fn processor(self, value: Cmp<String>) -> Self[src]

Add a matching criterion on processor

pub fn annotator(self, value: Cmp<String>) -> Self[src]

Add a matching criterion on annotator (i.e. the name of a processor)

pub fn annotatortype(self, value: Cmp<ProcessorType>) -> Self[src]

Add a matching criterion on annotator type (i.e. the type of a processor)

pub fn subset(self, value: Cmp<String>) -> Self[src]

Add a matching criterion on a FoLiA subset

pub fn confidence(self, value: Cmp<f64>) -> Self[src]

Add a matching criterion on confidence value

pub fn select() -> Self[src]

Creates an empty (all matching) select query

Trait Implementations

impl Clone for Query[src]

impl Default for Query[src]

Auto Trait Implementations

impl RefUnwindSafe for Query

impl Send for Query

impl Sync for Query

impl Unpin for Query

impl UnwindSafe for Query

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,