Trait lexical::FromLexical [−][src]
pub trait FromLexical: Sized { fn from_lexical(bytes: &[u8]) -> Self; fn try_from_lexical(bytes: &[u8]) -> Result<Self, Error>; }
Trait for numerical types that can be parsed from bytes.
Required methods
fn from_lexical(bytes: &[u8]) -> Self
[src]
Deserialize from byte slice.
fn try_from_lexical(bytes: &[u8]) -> Result<Self, Error>
[src]
Error-checking deserialize from byte slice.