pub fn new(mode: HashMode) -> Result<Curl> {
        let mut curl = Curl::default();
        curl.number_of_rounds = match mode {
            HashMode::CURLP27 => 27,
            HashMode::CURLP81 => 81,
            other => return Err(format_err!("Invalid mode: {}", other)),
        };
        Ok(curl)
    }
/// Creates a new instance of Curl using the provided mode
Creates a new instance of Curl using the provided mode
Creates a new instance of Curl using the provided mode
pub fn new(mode: HashMode) -> Result<Curl> {
        let mut curl = Curl::default();
        curl.number_of_rounds = match mode {
            HashMode::CURLP27 => 27,
            HashMode::CURLP81 => 81,
            other => return Err(format_err!("Invalid mode: {}", other)),
        };
        Ok(curl)
    }
pub fn new ( mode : HashMode ) -> Result < Curl > { let mut curl = Curl :: default ( ) ; curl . number_of_rounds = match mode { HashMode :: CURLP27 => 27 , HashMode :: CURLP81 => 81 , other => return Err ( format_err ! ( " " other ) ) , } ; Ok ( curl ) }
Creates a new instance of Curl using the provided mode
Creates a new instance of Curl using the provided mode
mode
HashMode