pub fn new(value: u8, weight: u8) -> Self {
        let mut this = Self { value, weight, weighted: 0 };
        this.update_cache();
        this
    }
/// Creates channel data from value and weight.
Creates channel data from value and weight.
Creates channel data from value and weight .
pub fn new(value: u8, weight: u8) -> Self {
        let mut this = Self { value, weight, weighted: 0 };
        this.update_cache();
        this
    }
pub fn new ( value : u8 , weight : u8 ) -> Self { let mut this = Self { value , weight , weighted : 0 } ; this . update_cache ( ) ; this }
Creates channel data from value and weight.
Creates channel data from value and weight .
value
u8
weight
u8
value
u8
weight
u8