Get the mutable value an [ActiveValue] also setting itself to [ActiveValue::NotSet]
(&mut self)
| 819 | /// Get the mutable value an [ActiveValue] |
| 820 | /// also setting itself to [ActiveValue::NotSet] |
| 821 | pub fn take(&mut self) -> Option<V> { |
| 822 | match std::mem::take(self) { |
| 823 | ActiveValue::Set(value) | ActiveValue::Unchanged(value) => Some(value), |
| 824 | ActiveValue::NotSet => None, |
| 825 | } |
| 826 | } |
| 827 | |
| 828 | /// Get an owned value of the [ActiveValue] |
| 829 | /// |
no outgoing calls
no test coverage detected