Skip to main content

Inner

Trait Inner 

Source
pub trait Inner<T> {
    // Required methods
    fn inner(&self) -> &T;
    fn into_inner(self) -> T;
}
Expand description

Borrowed and consuming access to one-field application wrappers.

Required Methods§

Source

fn inner(&self) -> &T

Borrow the wrapped value.

Source

fn into_inner(self) -> T

Consume the wrapper and return its value.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§