/// Update the hasher by digesting the ConfigVectorElementType enum value
Update the hasher by digesting the ConfigVectorElementType enum value
Update the hasher by digesting the ConfigVectorElementType enum value
pub fn update_digest(&self, hasher: &mut impl sha2::Digest) {
        let val = match self {
            ConfigNestedValueType::Bool => 0u8,
            ConfigNestedValueType::Uint8 => 1u8,
            ConfigNestedValueType::Uint16 => 2u8,
            ConfigNestedValueType::Uint32 => 3u8,
            ConfigNestedValueType::Uint64 => 4u8,
            ConfigNestedValueType::Int8 => 5u8,
            ConfigNestedValueType::Int16 => 6u8,
            ConfigNestedValueType::Int32 => 7u8,
            ConfigNestedValueType::Int64 => 8u8,
            ConfigNestedValueType::String { max_size } => {
                hasher.update(max_size.get().to_le_bytes());
                9u8
            }
        };
        hasher.update([val])
    }
pub fn update_digest ( & self , hasher : & mut impl sha2 :: Digest ) { let val = match self { ConfigNestedValueType :: Bool => 0u8 , ConfigNestedValueType :: Uint8 => 1u8 , ConfigNestedValueType :: Uint16 => 2u8 , ConfigNestedValueType :: Uint32 => 3u8 , ConfigNestedValueType :: Uint64 => 4u8 , ConfigNestedValueType :: Int8 => 5u8 , ConfigNestedValueType :: Int16 => 6u8 , ConfigNestedValueType :: Int32 => 7u8 , ConfigNestedValueType :: Int64 => 8u8 , ConfigNestedValueType :: String { max_size } => { hasher . update ( max_size . get ( ) . to_le_bytes ( ) ) ; 9u8 } } ; hasher . update ( [ val ] ) }
Update the hasher by digesting the ConfigVectorElementType enum value
Update the hasher by digesting the ConfigVectorElementType enum value
&self
hasher
&mut impl sha2::Digest