[][src]Struct ursa::keys::PrivateKey

pub struct PrivateKey(pub Vec<u8>);

The underlying content is dependent on implementation.

Methods

impl PrivateKey[src]

pub fn as_ptr(&self) -> *const u8[src]

Converts the object to a raw pointer for FFI interfacing

pub fn as_mut_ptr(&mut self) -> *mut u8[src]

Converts the object to a mutable raw pointer for FFI interfacing

pub fn len(&self) -> usize[src]

Returns the length of the object as an array

pub fn is_empty(&self) -> bool[src]

Trait Implementations

impl Drop for PrivateKey[src]

impl Eq for PrivateKey[src]

impl Clone for PrivateKey[src]

impl PartialEq<PrivateKey> for PrivateKey[src]

impl Index<usize> for PrivateKey[src]

type Output = u8

The returned type after indexing.

impl Index<Range<usize>> for PrivateKey[src]

type Output = [u8]

The returned type after indexing.

impl Index<RangeTo<usize>> for PrivateKey[src]

type Output = [u8]

The returned type after indexing.

impl Index<RangeFrom<usize>> for PrivateKey[src]

type Output = [u8]

The returned type after indexing.

impl Index<RangeFull> for PrivateKey[src]

type Output = [u8]

The returned type after indexing.

impl Debug for PrivateKey[src]

impl Display for PrivateKey[src]

impl Serialize for PrivateKey[src]

impl<'a> Deserialize<'a> for PrivateKey[src]

impl Zeroize for PrivateKey[src]

Auto Trait Implementations

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

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

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

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

impl<T> Same<T> for T

type Output = T

Should always be Self

impl<T> DeserializeOwned for T where
    T: Deserialize<'de>, 
[src]

impl<Z> Zeroize for Z where
    Z: ZeroizeWithDefault
[src]