We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0660b26 commit e791424Copy full SHA for e791424
crates/bevy_utils/src/packed_option.rs
@@ -111,13 +111,15 @@ impl<T: NoneValue> PackedOption<T> {
111
}
112
113
/// Takes the value out of the packed option, leaveing `None` in its place.
114
+ #[inline]
115
pub fn take(&mut self) -> PackedOption<T> {
116
std::mem::take(self)
117
118
119
120
impl<T: NoneValue> Default for PackedOption<T> {
121
/// Create a default packed option representing `None`.
122
123
fn default() -> Self {
124
Self(<T as NoneValue>::NONE_VALUE)
125
0 commit comments