[][src]Struct ucum::parser::Parser

pub struct Parser<'s, 't, T> { /* fields omitted */ }

A parser for UCUM units and UCUM quantities.

see module documentation

Implementations

impl<'s, 't, T> Parser<'s, 't, T>[src]

pub fn exhaustive(self, exhaustive: bool) -> Self[src]

pub fn ignore_ws(self, ignore_ws: bool) -> Self[src]

pub fn parse_value(&mut self) -> UcumResult<'t, Quantity<T>> where
    T: Clone + Div<T, Output = T> + From<i32> + From<T> + FromStr + Mul<T, Output = T> + MulAssign,
    <T as FromStr>::Err: Error + 'static, 
[src]

pub fn parse_unit(&mut self) -> UcumResult<'t, Quantity<T>> where
    T: Clone + Div<T, Output = T> + From<i32> + From<T> + FromStr + Mul<T, Output = T> + MulAssign,
    <T as FromStr>::Err: Error + 'static, 
[src]

pub fn parse_to_ast(&mut self) -> UcumResult<'t, Box<AST<'t>>>[src]

pub fn remaining(&self) -> &[u8][src]

Auto Trait Implementations

impl<'s, 't, T> !RefUnwindSafe for Parser<'s, 't, T>

impl<'s, 't, T> !Send for Parser<'s, 't, T>

impl<'s, 't, T> !Sync for Parser<'s, 't, T>

impl<'s, 't, T> Unpin for Parser<'s, 't, T>

impl<'s, 't, T> !UnwindSafe for Parser<'s, 't, T>

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.