XmlIdent

Struct XmlIdent 

Source
pub struct XmlIdent;
Expand description

Match a xml style tag or attribute

Trait Implementations§

Source§

impl<'input, B> Tokenizer<'input, B> for XmlIdent
where B: Buffer<'input>, B::Item: AsChar, B::Source: AsSlice<'input>,

Source§

type Token = Item<<<B as Buffer<'input>>::Source as AsSlice<'input>>::Slice>

Source§

fn to_token( &self, reader: &mut Reader<'_, 'input, B>, ) -> Result<Self::Token, Error>

Source§

fn peek(&self, reader: &mut Reader<'_, 'input, B>) -> bool

Source§

fn eat(&self, reader: &mut Reader<'_, 'input, B>) -> Result<(), Error>

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<'input, T, B> TokenizerExt<'input, B> for T
where B: Buffer<'input>, T: Tokenizer<'input, B>,

Source§

fn map_ok<F, U>(self, func: F) -> MapOk<Self, F, B>
where F: Fn(Self::Token) -> U, Self: Sized,

Source§

fn map_err<F, U>(self, func: F) -> MapErr<Self, F, B>
where F: Fn(usize, &B) -> U, U: Into<Box<dyn Error + Send + Sync>>, Self: Sized,

Source§

fn repeat(self, count: i32) -> Repeat<Self, B>
where Self: Sized,

Source§

fn many(self) -> Many<Self, B>
where Self: Sized,

Source§

fn until<U>(self, until: U) -> Until<Self, U, B>
where Self: Sized, U: Tokenizer<'input, B>,

Source§

fn or<T>(self, other: T) -> Or<Self, T, B>
where Self: Sized, T: Tokenizer<'input, B>,

Source§

fn optional(self) -> Opt<Self, B>
where Self: Sized,

Source§

fn spanned(self) -> Spanned<Self, B>
where Self: Sized,

Source§

fn into_integer(self, base: u32) -> IntoInteger<Self, B>
where Self: Sized, Self::Token: AsDigits,

Source§

fn punctuated<P>(self, punct: P) -> Puntuated<Self, P>
where Self: Sized, P: Tokenizer<'input, B>,

Source§

fn slice(self) -> Sliced<Self, B>
where Self: Sized, B: Buffer<'input>, <B as Buffer<'input>>::Source: AsSlice<'input>,

Source§

fn parse( &self, reader: &mut Reader<'_, 'input, B>, ) -> Result<Self::Token, Error>
where Self: Sized,

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.