pub struct Secret<T>(_);Expand description
Implementations§
Trait Implementations§
source§impl<T, U> AddAssign<Secret<U>> for Secret<T>where
T: AddAssign<U>,
impl<T, U> AddAssign<Secret<U>> for Secret<T>where T: AddAssign<U>,
source§fn add_assign(&mut self, rhs: Secret<U>)
fn add_assign(&mut self, rhs: Secret<U>)
Performs the
+= operation. Read moresource§impl<T, U> BitAndAssign<Secret<U>> for Secret<T>where
T: BitAndAssign<U>,
impl<T, U> BitAndAssign<Secret<U>> for Secret<T>where T: BitAndAssign<U>,
source§fn bitand_assign(&mut self, rhs: Secret<U>)
fn bitand_assign(&mut self, rhs: Secret<U>)
Performs the
&= operation. Read moresource§impl<T, U> BitOrAssign<Secret<U>> for Secret<T>where
T: BitOrAssign<U>,
impl<T, U> BitOrAssign<Secret<U>> for Secret<T>where T: BitOrAssign<U>,
source§fn bitor_assign(&mut self, rhs: Secret<U>)
fn bitor_assign(&mut self, rhs: Secret<U>)
Performs the
|= operation. Read moresource§impl<T, U> BitXorAssign<Secret<U>> for Secret<T>where
T: BitXorAssign<U>,
impl<T, U> BitXorAssign<Secret<U>> for Secret<T>where T: BitXorAssign<U>,
source§fn bitxor_assign(&mut self, rhs: Secret<U>)
fn bitxor_assign(&mut self, rhs: Secret<U>)
Performs the
^= operation. Read moresource§impl<'de, T: Deserialize<'de>> Deserialize<'de> for Secret<T>
impl<'de, T: Deserialize<'de>> Deserialize<'de> for Secret<T>
This API requires the following crate features to be activated: serde
source§fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
fn deserialize<D: Deserializer<'de>>(deserializer: D) -> Result<Self, D::Error>
Deserialize this value from the given Serde deserializer. Read more
source§impl<T, U> DivAssign<Secret<U>> for Secret<T>where
T: DivAssign<U>,
impl<T, U> DivAssign<Secret<U>> for Secret<T>where T: DivAssign<U>,
source§fn div_assign(&mut self, rhs: Secret<U>)
fn div_assign(&mut self, rhs: Secret<U>)
Performs the
/= operation. Read moresource§impl<E: Error> Error for Secret<E>
impl<E: Error> Error for Secret<E>
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
The lower-level source of this error, if any. Read more
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
source§impl<S: FromIterator<T>, T> FromIterator<Secret<T>> for Secret<S>
impl<S: FromIterator<T>, T> FromIterator<Secret<T>> for Secret<S>
source§impl<T, U> MulAssign<Secret<U>> for Secret<T>where
T: MulAssign<U>,
impl<T, U> MulAssign<Secret<U>> for Secret<T>where T: MulAssign<U>,
source§fn mul_assign(&mut self, rhs: Secret<U>)
fn mul_assign(&mut self, rhs: Secret<U>)
Performs the
*= operation. Read moresource§impl<T: Ord> Ord for Secret<T>
impl<T: Ord> Ord for Secret<T>
source§impl<T: PartialEq> PartialEq<Secret<T>> for Secret<T>
impl<T: PartialEq> PartialEq<Secret<T>> for Secret<T>
source§impl<T: PartialOrd> PartialOrd<Secret<T>> for Secret<T>
impl<T: PartialOrd> PartialOrd<Secret<T>> for Secret<T>
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 moresource§impl<T, U> RemAssign<Secret<U>> for Secret<T>where
T: RemAssign<U>,
impl<T, U> RemAssign<Secret<U>> for Secret<T>where T: RemAssign<U>,
source§fn rem_assign(&mut self, rhs: Secret<U>)
fn rem_assign(&mut self, rhs: Secret<U>)
Performs the
%= operation. Read moresource§impl<T, U> ShlAssign<Secret<U>> for Secret<T>where
T: ShlAssign<U>,
impl<T, U> ShlAssign<Secret<U>> for Secret<T>where T: ShlAssign<U>,
source§fn shl_assign(&mut self, rhs: Secret<U>)
fn shl_assign(&mut self, rhs: Secret<U>)
Performs the
<<= operation. Read moresource§impl<T, U> ShrAssign<Secret<U>> for Secret<T>where
T: ShrAssign<U>,
impl<T, U> ShrAssign<Secret<U>> for Secret<T>where T: ShrAssign<U>,
source§fn shr_assign(&mut self, rhs: Secret<U>)
fn shr_assign(&mut self, rhs: Secret<U>)
Performs the
>>= operation. Read moresource§impl<T, U> SubAssign<Secret<U>> for Secret<T>where
T: SubAssign<U>,
impl<T, U> SubAssign<Secret<U>> for Secret<T>where T: SubAssign<U>,
source§fn sub_assign(&mut self, rhs: Secret<U>)
fn sub_assign(&mut self, rhs: Secret<U>)
Performs the
-= operation. Read moreimpl<T: Copy> Copy for Secret<T>
impl<T: Eq> Eq for Secret<T>
impl<T> StructuralEq for Secret<T>
impl<T> StructuralPartialEq for Secret<T>
Auto Trait Implementations§
impl<T> RefUnwindSafe for Secret<T>where T: RefUnwindSafe,
impl<T> Send for Secret<T>where T: Send,
impl<T> Sync for Secret<T>where T: Sync,
impl<T> Unpin for Secret<T>where T: Unpin,
impl<T> UnwindSafe for Secret<T>where T: UnwindSafe,
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