pub struct Builder { /* private fields */ }
Expand description
A builder for digest transform operations.
Implementations§
Source§impl Builder
impl Builder
Sourcepub fn type_(&mut self, digest_type: DigestType) -> &mut Self
pub fn type_(&mut self, digest_type: DigestType) -> &mut Self
Sets the type of digest to perform.
If not set, an appropriate digest will be selected for you.
Sourcepub fn length(&mut self, digest_length: CFIndex) -> &mut Self
pub fn length(&mut self, digest_length: CFIndex) -> &mut Self
Sets the output length of the digest.
If not set, an appropriate length will be selected for you. Some digest types only support specific output lengths.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Builder
impl RefUnwindSafe for Builder
impl !Send for Builder
impl !Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
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