[][src]Struct ring::io::Positive

pub struct Positive<'a>(_);

A serialized positive integer.


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]

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.

Trait Implementations

impl<'a> Copy for Positive<'a>[src]

impl<'a> Clone for Positive<'a>[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl<'a> Unpin for Positive<'a>

impl<'a> Sync for Positive<'a>

impl<'a> Send for Positive<'a>

impl<'a> UnwindSafe for Positive<'a>

impl<'a> RefUnwindSafe for Positive<'a>

Blanket Implementations

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T> From<T> for T[src]

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> ToOwned for T where
    T: Clone

type Owned = T

The resulting type after obtaining ownership.