pub(crate) fn new(encoding: &'a E, prob: f32) -> Self {
        EncodingProb {
            encoding: Cow::Borrowed(encoding),
            prob,
        }
    }
/// Create an encoding with its probability.
///
/// This constructor takes a borrowed encoding.
Create an encoding with its probability.
This constructor takes a borrowed encoding.
Create an encoding with its probability . This constructor takes a borrowed encoding .
pub(crate) fn new(encoding: &'a E, prob: f32) -> Self {
        EncodingProb {
            encoding: Cow::Borrowed(encoding),
            prob,
        }
    }
pub ( crate ) fn new ( encoding : & ' a E , prob : f32 ) -> Self { EncodingProb { encoding : Cow :: Borrowed ( encoding ) , prob , } }
Create an encoding with its probability.
Create an encoding with its probability .
encoding
&'a E
prob
f32