[−][src]Struct wat_ast::Integer
Implementations
impl Integer
[src]
pub fn new(src: String) -> Self
[src]
pub fn sign(&self) -> Option<Sign>
[src]
Returns the sign token for this integer.
pub fn src(&self) -> &str
[src]
Returns the original source text for this integer.
pub fn val(&self) -> (Option<&String>, Option<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 AsAtoms for Integer
[src]
impl Clone for Integer
[src]
impl Debug for Integer
[src]
impl Display for Integer
[src]
impl Eq for Integer
[src]
impl From<i32> for Integer
[src]
impl<'_> Parse<'_> for Integer
[src]
impl PartialEq<Integer> for Integer
[src]
impl Peek for Integer
[src]
pub fn peek(cursor: Cursor<'_>) -> bool
[src]
pub fn display() -> &'static str
[src]
pub fn peek2(cursor: Cursor<'_>) -> bool
[src]
impl StructuralEq for Integer
[src]
impl StructuralPartialEq for Integer
[src]
Auto Trait Implementations
impl RefUnwindSafe for Integer
impl Send for Integer
impl Sync for Integer
impl Unpin for Integer
impl UnwindSafe for Integer
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> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
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>,