2 #![warn(clippy::wrong_self_convention)]
14 // If a method starts with `to_` and not ends with `_mut` it should expect `&self`
15 pub fn to_many(&mut self) -> Option<&mut [T]> {
17 Self::Many(data) => Some(data),
22 // If a method starts with `to_` and ends with `_mut` it should expect `&mut self`
23 pub fn to_many_mut(&self) -> Option<&[T]> {
25 Self::Many(data) => Some(data),