hydro2_operator/
port_try_from.rs

1// ---------------- [ File: src/port_try_from.rs ]
2crate::ix!();
3
4/// The dual trait: from a source type `Src` into `Self`, given port 0.
5pub trait PortTryFrom0<Src>: Sized {
6    type Error;
7    fn port_try_from0(src: Src) -> Result<Self, Self::Error>;
8}
9
10/// The dual trait: from a source type `Src` into `Self`, given port 0.
11pub trait PortTryFrom1<Src>: Sized {
12    type Error;
13    fn port_try_from1(src: Src) -> Result<Self, Self::Error>;
14}
15
16/// The dual trait: from a source type `Src` into `Self`, given port 0.
17pub trait PortTryFrom2<Src>: Sized {
18    type Error;
19    fn port_try_from2(src: Src) -> Result<Self, Self::Error>;
20}
21
22/// The dual trait: from a source type `Src` into `Self`, given port 0.
23pub trait PortTryFrom3<Src>: Sized {
24    type Error;
25    fn port_try_from3(src: Src) -> Result<Self, Self::Error>;
26}