Struct miniscript::descriptor::checksum::Engine
source · pub struct Engine { /* private fields */ }
Expand description
An engine to compute a checksum from a string.
Implementations§
source§impl Engine
impl Engine
sourcepub fn input(&mut self, s: &str) -> Result<(), Error>
pub fn input(&mut self, s: &str) -> Result<(), Error>
Inputs some data into the checksum engine.
If this function returns an error, the Engine
will be left in an indeterminate
state! It is safe to continue feeding it data but the result will not be meaningful.
sourcepub fn checksum_chars(&mut self) -> [char; 8]
pub fn checksum_chars(&mut self) -> [char; 8]
Obtains the checksum characters of all the data thus-far fed to the
engine without allocating, to get a string use Self::checksum
.
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Engine
impl Send for Engine
impl Sync for Engine
impl Unpin for Engine
impl UnwindSafe for Engine
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