pub struct Mantra {
pub syllables: Vec<String>,
pub repeats: Option<usize>,
}
Expand description
A mantra to be “recited” by the miner. Since a computer can’t actually recite a mantra, the term refers to the process of writing the mantra syllable by syllable to an output buffer.
Fields§
§syllables: Vec<String>
The syllables of the mantra. The mantra will be recited syllable by syllable.
repeats: Option<usize>
The number of times to repeat the mantra. If it’s None
, the mantra will be repeated once.
Trait Implementations§
impl Eq for Mantra
impl StructuralPartialEq for Mantra
Auto Trait Implementations§
impl Freeze for Mantra
impl RefUnwindSafe for Mantra
impl Send for Mantra
impl Sync for Mantra
impl Unpin for Mantra
impl UnwindSafe for Mantra
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