[−][src]Struct ucum::parser::Parser
A parser for UCUM units and UCUM quantities.
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]
T: Clone + Div<T, Output = T> + From<i32> + From<T> + FromStr + Mul<T, Output = T> + MulAssign,
<T as FromStr>::Err: Error + 'static,
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]
T: Clone + Div<T, Output = T> + From<i32> + From<T> + FromStr + Mul<T, Output = T> + MulAssign,
<T as FromStr>::Err: Error + 'static,
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]
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,
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, 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.
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>,