Struct enso_prelude::DefaultHasher 1.13.0[−][src]
pub struct DefaultHasher(_);
Expand description
The default Hasher
used by RandomState
.
The internal algorithm is not specified, and so it and its hashes should not be relied upon over releases.
Implementations
impl DefaultHasher
[src]
impl DefaultHasher
[src]pub fn new() -> DefaultHasher
[src]
pub fn new() -> DefaultHasher
[src]Creates a new DefaultHasher
.
This hasher is not guaranteed to be the same as all other
DefaultHasher
instances, but is the same as all other DefaultHasher
instances created through new
or default
.
Trait Implementations
impl Clone for DefaultHasher
[src]
impl Clone for DefaultHasher
[src]pub fn clone(&self) -> DefaultHasher
[src]
pub fn clone(&self) -> DefaultHasher
[src]Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]Performs copy-assignment from source
. Read more
impl Debug for DefaultHasher
[src]
impl Debug for DefaultHasher
[src]impl Default for DefaultHasher
[src]
impl Default for DefaultHasher
[src]pub fn default() -> DefaultHasher
[src]
pub fn default() -> DefaultHasher
[src]Creates a new DefaultHasher
using new
.
See its documentation for more.
impl Hasher for DefaultHasher
[src]
impl Hasher for DefaultHasher
[src]fn write_u128(&mut self, i: u128)
1.26.0[src]
fn write_u128(&mut self, i: u128)
1.26.0[src]Writes a single u128
into this hasher.
fn write_usize(&mut self, i: usize)
1.3.0[src]
fn write_usize(&mut self, i: usize)
1.3.0[src]Writes a single usize
into this hasher.
fn write_i128(&mut self, i: i128)
1.26.0[src]
fn write_i128(&mut self, i: i128)
1.26.0[src]Writes a single i128
into this hasher.
fn write_isize(&mut self, i: isize)
1.3.0[src]
fn write_isize(&mut self, i: isize)
1.3.0[src]Writes a single isize
into this hasher.
Auto Trait Implementations
impl RefUnwindSafe for DefaultHasher
impl Send for DefaultHasher
impl Sync for DefaultHasher
impl Unpin for DefaultHasher
impl UnwindSafe for DefaultHasher
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more
impl<T> Same<T> for T
impl<T> Same<T> for T
type Output = T
type Output = T
Should always be Self
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SP where
SS: SubsetOf<SP>,
pub fn to_subset(&self) -> Option<SS>
pub fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct self
from the equivalent element of its
superset. Read more
pub fn is_in_subset(&self) -> bool
pub fn is_in_subset(&self) -> bool
Checks if self
is actually part of its subset T
(and can be converted to it).
pub fn to_subset_unchecked(&self) -> SS
pub fn to_subset_unchecked(&self) -> SS
Use with care! Same as self.to_subset
but without any property checks. Always succeeds.
pub fn from_subset(element: &SS) -> SP
pub fn from_subset(element: &SS) -> SP
The inclusion map: converts self
to the equivalent element of its superset.
impl<T> ToOwned for T where
T: Clone,
[src]
impl<T> ToOwned for T where
T: Clone,
[src]type Owned = T
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn to_owned(&self) -> T
[src]Creates owned data from borrowed data, usually by cloning. Read more
pub fn clone_into(&self, target: &mut T)
[src]
pub fn clone_into(&self, target: &mut T)
[src]🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more