# Panics Panics if it is [ActiveValue::NotSet]. See [ActiveValue::try_as_ref] for a fallible non-panicking version.
(&self)
| 931 | /// |
| 932 | /// See [ActiveValue::try_as_ref] for a fallible non-panicking version. |
| 933 | fn as_ref(&self) -> &V { |
| 934 | match self { |
| 935 | ActiveValue::Set(value) | ActiveValue::Unchanged(value) => value, |
| 936 | ActiveValue::NotSet => panic!("Cannot borrow ActiveValue::NotSet"), |
| 937 | } |
| 938 | } |
| 939 | } |
| 940 | |
| 941 | impl<V> PartialEq for ActiveValue<V> |
no outgoing calls
no test coverage detected