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