[][src]Enum abnf::types::TerminalValues

pub enum TerminalValues {
    Range(u32u32),
    Concatenation(Vec<u32>),
}

Terminal created by numerical values.

Variants

Range(u32u32)

A single value within a range (e.g. %x01-ff).

Concatenation(Vec<u32>)

A terminal defined by a concatenation of values (e.g. %x0f.f1.ce).

Methods

impl TerminalValues[src]

pub fn range(from: u32, to: u32) -> TerminalValues[src]

Create an alternation from a lower and upper bound (both inclusive). See ABNF's "value range alternatives", e.g. %c##-##.

pub fn sequence(alts: &[u32]) -> TerminalValues[src]

Create a terminal from a series of values. See ABNF's terminal notation, e.g. %c##.##.##.

Trait Implementations

impl Clone for TerminalValues[src]

impl Debug for TerminalValues[src]

impl Eq for TerminalValues[src]

impl PartialEq<TerminalValues> for TerminalValues[src]

impl StructuralEq for TerminalValues[src]

impl StructuralPartialEq for TerminalValues[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.