[][src]Struct ursa::keys::MacKey

pub struct MacKey(pub Vec<u8>);

Methods

impl MacKey[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 MacKey[src]

impl Eq for MacKey[src]

impl Clone for MacKey[src]

impl PartialEq<MacKey> for MacKey[src]

impl Index<usize> for MacKey[src]

type Output = u8

The returned type after indexing.

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

type Output = [u8]

The returned type after indexing.

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

type Output = [u8]

The returned type after indexing.

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

type Output = [u8]

The returned type after indexing.

impl Index<RangeFull> for MacKey[src]

type Output = [u8]

The returned type after indexing.

impl Debug for MacKey[src]

impl Display for MacKey[src]

impl Serialize for MacKey[src]

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

impl Zeroize for MacKey[src]

Auto Trait Implementations

impl Send for MacKey

impl Unpin for MacKey

impl Sync for MacKey

impl UnwindSafe for MacKey

impl RefUnwindSafe for MacKey

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]