MCPcopy Create free account
hub / github.com/DioxusLabs/dioxus-components / remove

Method remove

primitives/src/calendar.rs:66–73  ·  view source on GitHub ↗

Removes a day from the collection Returns `true` if the collection did contain the day

(&mut self, day: Weekday)

Source from the content-addressed store, hash-verified

64 // Removes a day from the collection
65 // Returns `true` if the collection did contain the day
66 fn remove(&mut self, day: Weekday) -> bool {
67 if self.contains(day) {
68 self.0 &= !Self::single(day).0;
69 return true;
70 }
71
72 false
73 }
74}
75
76// An iterator over a collection of weekdays, starting from a given day

Callers 2

nextMethod · 0.45
newMethod · 0.45

Calls 1

containsMethod · 0.80

Tested by

no test coverage detected