Struct bonsaidb::local::argon2::AssociatedData
pub struct AssociatedData { /* private fields */ }
Expand description
Associated data
Implementations§
§impl AssociatedData
impl AssociatedData
pub fn new(slice: &[u8]) -> Result<AssociatedData, Error>
pub fn new(slice: &[u8]) -> Result<AssociatedData, Error>
Create a new AssociatedData from a slice.
pub const EMPTY: AssociatedData = Self{ bytes: [0u8; Self::MAX_LEN], len: 0,}
pub const EMPTY: AssociatedData = Self{ bytes: [0u8; Self::MAX_LEN], len: 0,}
Empty value.
pub fn from_b64(s: &str) -> Result<AssociatedData, Error>
pub fn from_b64(s: &str) -> Result<AssociatedData, Error>
Decode AssociatedData from a B64 string
Trait Implementations§
§impl AsRef<[u8]> for AssociatedData
impl AsRef<[u8]> for AssociatedData
§impl Clone for AssociatedData
impl Clone for AssociatedData
§fn clone(&self) -> AssociatedData
fn clone(&self) -> AssociatedData
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Debug for AssociatedData
impl Debug for AssociatedData
§impl Default for AssociatedData
impl Default for AssociatedData
§fn default() -> AssociatedData
fn default() -> AssociatedData
Returns the “default value” for a type. Read more
§impl FromStr for AssociatedData
impl FromStr for AssociatedData
§impl Hash for AssociatedData
impl Hash for AssociatedData
§impl Ord for AssociatedData
impl Ord for AssociatedData
§impl PartialEq<AssociatedData> for AssociatedData
impl PartialEq<AssociatedData> for AssociatedData
§fn eq(&self, other: &AssociatedData) -> bool
fn eq(&self, other: &AssociatedData) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.§impl PartialOrd<AssociatedData> for AssociatedData
impl PartialOrd<AssociatedData> for AssociatedData
§fn partial_cmp(&self, other: &AssociatedData) -> Option<Ordering>
fn partial_cmp(&self, other: &AssociatedData) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self
and other
) and is used by the <=
operator. Read more§impl TryFrom<&[u8]> for AssociatedData
impl TryFrom<&[u8]> for AssociatedData
impl Copy for AssociatedData
impl Eq for AssociatedData
impl StructuralEq for AssociatedData
impl StructuralPartialEq for AssociatedData
Auto Trait Implementations§
impl RefUnwindSafe for AssociatedData
impl Send for AssociatedData
impl Sync for AssociatedData
impl Unpin for AssociatedData
impl UnwindSafe for AssociatedData
Blanket Implementations§
§impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedExplicit<'a, E> for Twhere T: 'a,
§impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere
T: 'a,
impl<'a, T, E> AsTaggedImplicit<'a, E> for Twhere T: 'a,
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> ToHex for Twhere
T: AsRef<[u8]>,
impl<T> ToHex for Twhere T: AsRef<[u8]>,
source§fn encode_hex<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex<U>(&self) -> Uwhere U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Lower case
letters are used (e.g. f9b4ca
)source§fn encode_hex_upper<U>(&self) -> Uwhere
U: FromIterator<char>,
fn encode_hex_upper<U>(&self) -> Uwhere U: FromIterator<char>,
Encode the hex strict representing
self
into the result. Upper case
letters are used (e.g. F9B4CA
)