Beatsaber Rust Utilities: A Beatsaber V3 parsing library.
beatsaber beatmap
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Added helper `LimitBehaviour` methods.

AlephCubed 8971161e a560b2c8

+12
+12
src/difficulty/lightshow/filter.rs
··· 225 225 } 226 226 ); 227 227 228 + impl LimitBehaviour { 229 + /// Returns true if duration limiting is enabled, that is either `Duration` or `Both`. 230 + pub fn duration(&self) -> bool { 231 + matches!(self, LimitBehaviour::Duration | LimitBehaviour::Both) 232 + } 233 + 234 + /// Returns true if distribution limiting is enabled, that is either `Distribution` or `Both`. 235 + pub fn distribution(&self) -> bool { 236 + matches!(self, LimitBehaviour::Distribution | LimitBehaviour::Both) 237 + } 238 + } 239 + 228 240 #[allow(deprecated)] 229 241 #[cfg(test)] 230 242 mod tests {