- Sort Score
- Result 10 results
- Languages All
Results 1 - 1 of 1 for SetIf (0.17 sec)
-
internal/pubsub/mask.go
func (t *Mask) Merge(other Mask) { *t |= other } // MergeMaskable will merge other into t. func (t *Mask) MergeMaskable(other Maskable) { *t |= Mask(other.Mask()) } // SetIf will add other if b is true. func (t *Mask) SetIf(b bool, other Mask) { if b { *t |= other } } // Mask returns the mask as a uint64. func (t Mask) Mask() uint64 { return uint64(t) }
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Tue Jul 05 21:45:49 GMT 2022 - 1.3K bytes - Viewed (0)