Struct nommy::text::AnyInRange [−][src]
AnyInRange is a generic type that implements Parse to match many characters within the given range
use nommy::{Parse, IntoBuf, text::AnyInRange}; let mut buffer = "hello world".chars().into_buf(); let c: String = AnyInRange::<{'a'..='z'}>::parse(&mut buffer).unwrap().into(); assert_eq!(c, "hello");
Trait Implementations
impl<const CHAR_RANGE: RangeInclusive<char>> Clone for AnyInRange<CHAR_RANGE>
[src]
fn clone(&self) -> AnyInRange<CHAR_RANGE>
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<const CHAR_RANGE: RangeInclusive<char>> Debug for AnyInRange<CHAR_RANGE>
[src]
impl<const CHAR_RANGE: RangeInclusive<char>> Into<String> for AnyInRange<CHAR_RANGE>
[src]
impl<const CHAR_RANGE: RangeInclusive<char>> Parse<char> for AnyInRange<CHAR_RANGE>
[src]
impl<const CHAR_RANGE: RangeInclusive<char>> PartialEq<AnyInRange<CHAR_RANGE>> for AnyInRange<CHAR_RANGE>
[src]
fn eq(&self, other: &AnyInRange<CHAR_RANGE>) -> bool
[src]
fn ne(&self, other: &AnyInRange<CHAR_RANGE>) -> bool
[src]
impl<const CHAR_RANGE: RangeInclusive<char>> Peek<char> for AnyInRange<CHAR_RANGE>
[src]
impl<const CHAR_RANGE: RangeInclusive<char>> StructuralPartialEq for AnyInRange<CHAR_RANGE>
[src]
Auto Trait Implementations
impl<const CHAR_RANGE: RangeInclusive<char>> RefUnwindSafe for AnyInRange<CHAR_RANGE>
[src]
impl<const CHAR_RANGE: RangeInclusive<char>> Send for AnyInRange<CHAR_RANGE>
[src]
impl<const CHAR_RANGE: RangeInclusive<char>> Sync for AnyInRange<CHAR_RANGE>
[src]
impl<const CHAR_RANGE: RangeInclusive<char>> Unpin for AnyInRange<CHAR_RANGE>
[src]
impl<const CHAR_RANGE: RangeInclusive<char>> UnwindSafe for AnyInRange<CHAR_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>,