[−][src]Enum abnf::types::TerminalValues
Terminal created by numerical values.
Variants
A single value within a range (e.g. %x01-ff
).
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]
fn clone(&self) -> TerminalValues
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TerminalValues
[src]
impl Eq for TerminalValues
[src]
impl PartialEq<TerminalValues> for TerminalValues
[src]
fn eq(&self, other: &TerminalValues) -> bool
[src]
fn ne(&self, other: &TerminalValues) -> bool
[src]
impl StructuralEq for TerminalValues
[src]
impl StructuralPartialEq for TerminalValues
[src]
Auto Trait Implementations
impl RefUnwindSafe for TerminalValues
impl Send for TerminalValues
impl Sync for TerminalValues
impl Unpin for TerminalValues
impl UnwindSafe for TerminalValues
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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> 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>,