mirror of
https://github.com/juspay/hyperswitch.git
synced 2025-11-03 13:30:39 +08:00
Co-authored-by: hyperswitch-bot[bot] <148525504+hyperswitch-bot[bot]@users.noreply.github.com>
10 lines
187 B
Rust
10 lines
187 B
Rust
pub trait ForeignFrom<F> {
|
|
fn foreign_from(from: F) -> Self;
|
|
}
|
|
|
|
pub trait ForeignTryFrom<F>: Sized {
|
|
type Error;
|
|
|
|
fn foreign_try_from(from: F) -> Result<Self, Self::Error>;
|
|
}
|