[][src]Struct wast::lexer::Integer

pub struct Integer<'a> { /* fields omitted */ }

A parsed integer, signed or unsigned.

Methods can be use to access the value of the integer.

Methods

impl<'a> Integer<'a>[src]

pub fn src(&self) -> &'a str[src]

Returns the original source text for this integer.

pub fn val(&self) -> (&str, u32)[src]

Returns the value string that can be parsed for this integer, as well as the base that it should be parsed in

Trait Implementations

impl<'a> Debug for Integer<'a>[src]

impl<'a> PartialEq<Integer<'a>> for Integer<'a>[src]

impl<'a> StructuralPartialEq for Integer<'a>[src]

Auto Trait Implementations

impl<'a> RefUnwindSafe for Integer<'a>

impl<'a> Send for Integer<'a>

impl<'a> Sync for Integer<'a>

impl<'a> Unpin for Integer<'a>

impl<'a> UnwindSafe for Integer<'a>

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.