Struct nommy::text::Tag [−][src]
Tag
is a generic type that implements Parse
to match the given string exactly
use nommy::{Parse, IntoBuf, text::Tag}; let mut buffer = "foobarbaz".chars().into_buf(); Tag::<"foobar">::parse(&mut buffer).unwrap(); Tag::<"baz">::parse(&mut buffer).unwrap();
Trait Implementations
impl<const TAG: &'static str> Clone for Tag<TAG>
[src]
impl<const TAG: &'static str> Copy for Tag<TAG>
[src]
impl<const TAG: &'static str> Debug for Tag<TAG>
[src]
impl<const TAG: &'static str> Parse<char> for Tag<TAG>
[src]
fn parse(input: &mut impl Buffer<char>) -> Result<Self>
[src]
fn peek(input: &mut impl Buffer<char>) -> bool
[src]
impl<const TAG: &'static str> PartialEq<Tag<TAG>> for Tag<TAG>
[src]
fn eq(&self, other: &Tag<TAG>) -> bool
[src]
#[must_use]pub fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
impl<const TAG: &'static str> StructuralPartialEq for Tag<TAG>
[src]
Auto Trait Implementations
impl<const TAG: &'static str> RefUnwindSafe for Tag<TAG>
[src]
impl<const TAG: &'static str> Send for Tag<TAG>
[src]
impl<const TAG: &'static str> Sync for Tag<TAG>
[src]
impl<const TAG: &'static str> Unpin for Tag<TAG>
[src]
impl<const TAG: &'static str> UnwindSafe for Tag<TAG>
[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>,