[][src]Struct syn_rsx::ParserConfig

pub struct ParserConfig { /* fields omitted */ }

Configures the Parser behavior

Implementations

impl ParserConfig[src]

pub fn new() -> ParserConfig[src]

Create new ParserConfig with default config

pub fn flat_tree(self) -> Self[src]

Return flat tree instead of nested tree

pub fn number_of_top_level_nodes(self, number: usize) -> Self[src]

Exact number of required top level nodes

pub fn type_of_top_level_nodes(self, node_type: NodeType) -> Self[src]

Enforce the NodeType of top level nodes

Trait Implementations

impl Clone for ParserConfig[src]

impl Debug for ParserConfig[src]

impl Default for ParserConfig[src]

Auto Trait Implementations

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.