-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improves `rustdoc` documentation by notating types which are conditionally available based on cargo features.
- Loading branch information
1 parent
0aba2cc
commit 3a9a713
Showing
6 changed files
with
15 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,12 @@ | ||
//! Secret `Vec` types | ||
|
||
use super::{DebugSecret, Secret}; | ||
use super::{CloneableSecret, DebugSecret, Secret}; | ||
use alloc::vec::Vec; | ||
use zeroize::Zeroize; | ||
|
||
/// `Vec` types containing secret value | ||
#[cfg(feature = "alloc")] | ||
#[cfg_attr(docsrs, doc(cfg(feature = "alloc")))] | ||
pub type SecretVec<S> = Secret<Vec<S>>; | ||
|
||
#[cfg(feature = "alloc")] | ||
impl<S: CloneableSecret + Zeroize> CloneableSecret for Vec<S> {} | ||
impl<S: DebugSecret + Zeroize> DebugSecret for Vec<S> {} |