pub struct MdRef(_);
Expand description
A reference to an Md
.
Implementations
sourceimpl MdRef
impl MdRef
sourcepub fn block_size(&self) -> usize
pub fn block_size(&self) -> usize
Returns the block size of the digest in bytes.
This corresponds to EVP_MD_block_size
.
sourcepub fn size(&self) -> usize
pub fn size(&self) -> usize
Returns the size of the digest in bytes.
This corresponds to EVP_MD_size
.
sourcepub fn type_(&self) -> Nid
pub fn type_(&self) -> Nid
Returns the Nid
of the digest.
This corresponds to EVP_MD_type
.
Trait Implementations
sourceimpl ForeignTypeRef for MdRef
impl ForeignTypeRef for MdRef
impl Send for MdRef
impl Sync for MdRef
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more