pub const fn new_with_initial(poly: u32, initial: u32) -> Digest {
        Digest {
            table: make_table(poly, true),
            initial,
            value: initial,
            final_xor: 0u32,
            calc: CalcType::Compat,
        }
    }
/// Creates a new Digest from input polynomial and initial value.
///
/// # Example
///
/// ```rust
/// use crc::{crc32, Hasher32};
/// let mut digest = crc32::Digest::new_with_initial(crc32::IEEE, 0u32);
/// digest.write(b"123456789");
/// assert_eq!(digest.sum32(), 0xcbf43926);
/// ```
Creates a new Digest from input polynomial and initial value.
Creates a new Digest from input polynomial and initial value .
pub const fn new_with_initial(poly: u32, initial: u32) -> Digest {
        Digest {
            table: make_table(poly, true),
            initial,
            value: initial,
            final_xor: 0u32,
            calc: CalcType::Compat,
        }
    }
pub const fn new_with_initial ( poly : u32 , initial : u32 ) -> Digest { Digest { table : make_table ( poly , true ) , initial , value : initial , final_xor : 0u32 , calc : CalcType :: Compat , } }
Creates a new Digest from input polynomial and initial value.
Creates a new Digest from input polynomial and initial value .
poly
u32
initial
u32
example
None