feat(aa): add implementation of the new rule methods.

This commit is contained in:
Alexandre Pujol 2024-06-29 22:27:39 +01:00
parent 8b24f3521d
commit 0e0f87611a
No known key found for this signature in database
GPG key ID: C5469996F0DF68EC
19 changed files with 380 additions and 2 deletions

View file

@ -39,5 +39,11 @@ func (r *All) Compare(other Rule) int {
func (r *All) Merge(other Rule) bool {
o, _ := other.(*All)
b := &r.Base
return b.merge(o.Base)
return b.merge(o.Base) // Always merge all rules
}
func (r *All) Lengths() []int {
return []int{} // No len for all
}
func (r *All) setPaddings(max []int) {} // No paddings for all