TokenNumber

Struct TokenNumber 

Source
pub struct TokenNumber;

Trait Implementations§

Source§

impl Match<u8> for TokenNumber

Implement the Match trait for the token number.

Source§

fn matcher(&self, data: &[u8]) -> (bool, usize)

Returns true if the data matches the pattern. Read more
Source§

impl MatchSize for TokenNumber

Implement the MatchSize trait for the token number.

Source§

fn size(&self) -> usize

Returns the size of the matchable object.

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<'a, M> Recognizable<'a, u8, &'a [u8]> for M
where M: Match<u8> + MatchSize,

Source§

fn recognize( self, scanner: &mut Scanner<'a, u8>, ) -> Result<Option<&'a [u8]>, ParseError>

Try to recognize the object for the given scanner. Read more
Source§

impl<'a, T, M> RecognizeSelf<'a, T, M> for M
where M: Match<T> + MatchSize,

Source§

fn recognize_self( self, scanner: &mut Scanner<'a, T>, ) -> Result<Option<M>, ParseError>

Try to recognize the object for the given scanner. Read more
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.