Skip to main content

Convert

Trait Convert 

Source
pub unsafe trait Convert<T> {
    // Required method
    fn into(self) -> T;
}
Expand description

§Safety

Preserve the owner, visible range, resident capacity, and owner lifetimes. Allocate, copy, and clone nothing; do not introduce sharing.

Required Methods§

Source

fn into(self) -> T

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§

Source§

impl<T> Convert<T> for NonEmpty<T>

Source§

impl<T> Convert<T> for T