Skip to main content

PortTryInto2

Trait PortTryInto2 

Source
pub trait PortTryInto2<T> {
    type Error;

    // Required method
    fn port_try_into2(self) -> Result<T, Self::Error>;
}
Expand description

A local trait for “port-aware” conversions

Required Associated Types§

Required Methods§

Source

fn port_try_into2(self) -> Result<T, Self::Error>

Convert self into a T, using port as needed.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§