Struct nommy::bytes::OneInRange [−][src]
OneInRange is a generic type that implements Parse to match one character within the given range
use nommy::{Parse, IntoBuf, bytes::OneInRange}; let mut buffer = (5..).into_buf(); let c: u8 = OneInRange::<{0..=10}>::parse(&mut buffer).unwrap().into(); assert_eq!(c, 5);
Trait Implementations
impl<const BYTE_RANGE: RangeInclusive<u8>> Clone for OneInRange<BYTE_RANGE>
[src]
fn clone(&self) -> OneInRange<BYTE_RANGE>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<const BYTE_RANGE: RangeInclusive<u8>> Copy for OneInRange<BYTE_RANGE>
[src]
impl<const BYTE_RANGE: RangeInclusive<u8>> Debug for OneInRange<BYTE_RANGE>
[src]
impl<const BYTE_RANGE: RangeInclusive<u8>> Into<u8> for OneInRange<BYTE_RANGE>
[src]
impl<const BYTE_RANGE: RangeInclusive<u8>> Parse<u8> for OneInRange<BYTE_RANGE>
[src]
impl<const BYTE_RANGE: RangeInclusive<u8>> PartialEq<OneInRange<BYTE_RANGE>> for OneInRange<BYTE_RANGE>
[src]
fn eq(&self, other: &OneInRange<BYTE_RANGE>) -> bool
[src]
fn ne(&self, other: &OneInRange<BYTE_RANGE>) -> bool
[src]
impl<const BYTE_RANGE: RangeInclusive<u8>> Peek<u8> for OneInRange<BYTE_RANGE>
[src]
impl<const BYTE_RANGE: RangeInclusive<u8>> StructuralPartialEq for OneInRange<BYTE_RANGE>
[src]
Auto Trait Implementations
impl<const BYTE_RANGE: RangeInclusive<u8>> RefUnwindSafe for OneInRange<BYTE_RANGE>
[src]
impl<const BYTE_RANGE: RangeInclusive<u8>> Send for OneInRange<BYTE_RANGE>
[src]
impl<const BYTE_RANGE: RangeInclusive<u8>> Sync for OneInRange<BYTE_RANGE>
[src]
impl<const BYTE_RANGE: RangeInclusive<u8>> Unpin for OneInRange<BYTE_RANGE>
[src]
impl<const BYTE_RANGE: RangeInclusive<u8>> UnwindSafe for OneInRange<BYTE_RANGE>
[src]
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,
pub 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.
pub fn to_owned(&self) -> T
[src]
pub 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.
pub 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>,