pub enum ProtectedValue {
Unprotected(String),
Protected(usize, Vec<u8>),
}
Variants§
Implementations§
Trait Implementations§
Source§impl Clone for ProtectedValue
impl Clone for ProtectedValue
Source§fn clone(&self) -> ProtectedValue
fn clone(&self) -> ProtectedValue
Returns a duplicate 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 moreSource§impl Debug for ProtectedValue
impl Debug for ProtectedValue
Auto Trait Implementations§
impl Freeze for ProtectedValue
impl RefUnwindSafe for ProtectedValue
impl Send for ProtectedValue
impl Sync for ProtectedValue
impl Unpin for ProtectedValue
impl UnwindSafe for ProtectedValue
Blanket Implementations§
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