Skip to main content

TagStringDecompositionAutomaton

Struct TagStringDecompositionAutomaton 

Source
pub struct TagStringDecompositionAutomaton { /* private fields */ }
Expand description

Lazy decomposition automaton for a fixed TAG string value.

Implementations§

Source§

impl TagStringDecompositionAutomaton

Source

pub fn len(&self) -> usize

Return the number of tokens in the fixed input.

Source

pub fn is_empty(&self) -> bool

Return whether the fixed input is empty.

Trait Implementations§

Source§

impl BottomUpTa for TagStringDecompositionAutomaton

Source§

type State = TagSpan

State type carried by the automaton. Read more
Source§

fn step( &self, symbol: Symbol, children: &[TagSpan], out: &mut dyn FnMut(TagSpan), )

Report all possible parent states for f(children...). Read more
Source§

fn is_accepting(&self, state: &TagSpan) -> bool

Return whether q is an accepting state. Read more
Source§

impl Clone for TagStringDecompositionAutomaton

Source§

fn clone(&self) -> TagStringDecompositionAutomaton

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl CondensedTa for TagStringDecompositionAutomaton

Source§

fn condensed_rules(&self, out: &mut dyn FnMut(&[TagSpan], &SymbolSet, TagSpan))

Enumerate every distinct (children, result) pair, reporting the set of symbols that have that shape. Read more
Source§

fn condensed_nullary_rules(&self, out: &mut dyn FnMut(&SymbolSet, TagSpan))

Enumerate condensed nullary rules. Read more
Source§

fn condensed_rules_by_child( &self, position: usize, state: &TagSpan, out: &mut dyn FnMut(&[TagSpan], &SymbolSet, TagSpan), )

Enumerate condensed rules whose child at position is state. Read more
Source§

impl Debug for TagStringDecompositionAutomaton

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl IndexedBottomUpTa for TagStringDecompositionAutomaton

Source§

fn step_partial( &self, symbol: Symbol, position: usize, state_at_position: &TagSpan, out: &mut dyn FnMut(&[TagSpan], TagSpan), )

Report every rule f(children...) -> q where children[position] equals state_at_position. Read more
Source§

impl StateUniverse for TagStringDecompositionAutomaton

Source§

fn all_states(&self, out: &mut dyn FnMut(TagSpan))

Report every state in the finite universe exactly once.
Source§

impl TopDownTa for TagStringDecompositionAutomaton

Source§

fn step_topdown( &self, parent: &TagSpan, out: &mut dyn FnMut(Symbol, &[TagSpan]), )

Report every rule f(children...) -> parent. Read more
Source§

fn initial_states(&self, out: &mut dyn FnMut(TagSpan))

Report the initial states of the top-down view. 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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
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.