hydro2_operator/
port_try_into.rs

1// ---------------- [ File: src/port_try_into.rs ]
2crate::ix!();
3
4/// A local trait for "port-aware" conversions
5pub trait PortTryInto0<T> {
6    type Error;
7    /// Convert `self` into a `T`, using `port` as needed.
8    fn port_try_into0(self) -> Result<T, Self::Error>;
9}
10
11/// A local trait for "port-aware" conversions
12pub trait PortTryInto1<T> {
13    type Error;
14    /// Convert `self` into a `T`, using `port` as needed.
15    fn port_try_into1(self) -> Result<T, Self::Error>;
16}
17
18/// A local trait for "port-aware" conversions
19pub trait PortTryInto2<T> {
20    type Error;
21    /// Convert `self` into a `T`, using `port` as needed.
22    fn port_try_into2(self) -> Result<T, Self::Error>;
23}
24
25/// A local trait for "port-aware" conversions
26pub trait PortTryInto3<T> {
27    type Error;
28    /// Convert `self` into a `T`, using `port` as needed.
29    fn port_try_into3(self) -> Result<T, Self::Error>;
30}