[−][src]Struct pgp::types::Mpi
Represents an owned MPI value. The inner value is ready to be serialized, without the need to strip leading zeros.
Methods
impl Mpi
[src]
pub fn from_raw(v: Vec<u8>) -> Self
[src]
pub fn from_slice(slice: &[u8]) -> Self
[src]
pub fn from_raw_slice(raw: &[u8]) -> Self
[src]
Strips leading zeros.
pub fn as_ref(&self) -> MpiRef
[src]
pub fn as_bytes(&self) -> &[u8]
[src]
Trait Implementations
impl Serialize for Mpi
[src]
fn to_writer<W: Write>(&self, w: &mut W) -> Result<()>
[src]
fn to_bytes(&self) -> Result<Vec<u8>>
[src]
impl AsRef<[u8]> for Mpi
[src]
impl<'_> From<&'_ [u8]> for Mpi
[src]
impl From<Vec<u8>> for Mpi
[src]
impl From<BigUint> for Mpi
[src]
impl From<Mpi> for BigUint
[src]
impl<'a> From<&'a Mpi> for BigUint
[src]
impl<'a> From<&'a BigUint> for Mpi
[src]
impl Clone for Mpi
[src]
impl Default for Mpi
[src]
impl Eq for Mpi
[src]
impl PartialEq<Mpi> for Mpi
[src]
impl Deref for Mpi
[src]
impl Debug for Mpi
[src]
impl StructuralPartialEq for Mpi
[src]
impl StructuralEq for Mpi
[src]
impl Zeroize for Mpi
[src]
Auto Trait Implementations
impl Send for Mpi
impl Sync for Mpi
impl Unpin for Mpi
impl UnwindSafe for Mpi
impl RefUnwindSafe for Mpi
Blanket Implementations
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T> Clear for T where
T: InitializableFromZeroed + ?Sized,
[src]
T: InitializableFromZeroed + ?Sized,
impl<T> InitializableFromZeroed for T where
T: Default,
[src]
T: Default,
unsafe fn initialize(place: *mut T)
[src]
impl<Z> Zeroize for Z where
Z: DefaultIsZeroes,
[src]
Z: DefaultIsZeroes,
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,
fn vzip(self) -> V
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
impl<T> ToHex for T where
T: AsRef<[u8]>,
[src]
T: AsRef<[u8]>,
fn encode_hex<U>(&self) -> U where
U: FromIterator<char>,
[src]
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> U where
U: FromIterator<char>,
[src]
U: FromIterator<char>,