Trait DefaultExtTake

Source
pub(crate) trait DefaultExtTake: Default {
    // Provided method
    fn take(&mut self) -> Self { ... }
}
Expand description

Convenience extension trait to provide .take()

Convenient way to provide .take() on some of our types.

Provided Methods§

Source

fn take(&mut self) -> Self

Returns *self, replacing it with the default value.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§