Struct ring::io::Positive [−][src]
pub struct Positive<'a>(_);
A serialized positive integer.
Implementations
impl<'a> Positive<'a>[src]
impl<'a> Positive<'a>[src]pub fn big_endian_without_leading_zero(&self) -> &'a [u8][src]
Returns the value, ordered from significant byte to least significant byte, without any leading zeros. The result is guaranteed to be non-empty.
impl Positive<'_>[src]
impl Positive<'_>[src]pub fn first_byte(&self) -> u8[src]
Returns the first byte.
Will not panic because the value is guaranteed to have at least one byte.