Function dicom_core::value::deserialize::read_number[][src]

pub fn read_number<T>(text: &[u8]) -> Result<T, Error> where
    T: Ten,
    T: From<u8>,
    T: Add<T, Output = T>,
    T: Mul<T, Output = T>,
    T: Sub<T, Output = T>, 

Retrieve an integer in text form.

All bytes in the text must be within the range b’0’ and b’9’ The text must also not be empty nor have more than 9 characters.