[−][src]Enum abnf::types::NumVal
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(u32, u32)
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]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,