[][src]Enum abnf::types::NumVal

pub enum NumVal {
    Terminal(Vec<u32>),
    Range(u32u32),
}

A single value within a range (e.g. %x01-ff) or a terminal defined by a series of values (e.g. %x0f.f1.ce).

Variants

Terminal(Vec<u32>)Range(u32u32)

Methods

impl NumVal[src]

pub fn terminal(alts: &[u32]) -> NumVal[src]

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

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

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

Trait Implementations

impl Eq for NumVal[src]

impl Clone for NumVal[src]

impl PartialEq<NumVal> for NumVal[src]

impl Debug for NumVal[src]

Auto Trait Implementations

impl Send for NumVal

impl Unpin for NumVal

impl Sync for NumVal

impl RefUnwindSafe for NumVal

impl UnwindSafe for NumVal

Blanket Implementations

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

type Owned = T

The resulting type after obtaining ownership.

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

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

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<T> BorrowMut<T> for T where
    T: ?Sized
[src]

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

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