Struct rustpython_common::hash::HashSecret
source · pub struct HashSecret { /* private fields */ }
Implementations§
source§impl HashSecret
impl HashSecret
pub fn hash_value<T: Hash + ?Sized>(&self, data: &T) -> PyHash
pub fn hash_iter<'a, T: 'a, I, F, E>( &self, iter: I, hashf: F ) -> Result<PyHash, E>where I: IntoIterator<Item = &'a T>, F: Fn(&'a T) -> Result<PyHash, E>,
pub fn hash_bytes(&self, value: &[u8]) -> PyHash
pub fn hash_str(&self, value: &str) -> PyHash
Trait Implementations§
source§impl BuildHasher for HashSecret
impl BuildHasher for HashSecret
source§impl Distribution<HashSecret> for Standard
impl Distribution<HashSecret> for Standard
source§fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> HashSecret
fn sample<R: Rng + ?Sized>(&self, rng: &mut R) -> HashSecret
Generate a random value of
T
, using rng
as the source of randomness.Auto Trait Implementations§
impl RefUnwindSafe for HashSecret
impl Send for HashSecret
impl Sync for HashSecret
impl Unpin for HashSecret
impl UnwindSafe for HashSecret
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