From 52edc39a7081fd6662e14fbcd473adabbbc36c7a Mon Sep 17 00:00:00 2001 From: KyleMiles Date: Thu, 5 Jan 2023 15:29:09 -0500 Subject: Cargo doc fixes --- rust/src/types.rs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'rust/src/types.rs') diff --git a/rust/src/types.rs b/rust/src/types.rs index eac2e7d1..c7f55b8f 100644 --- a/rust/src/types.rs +++ b/rust/src/types.rs @@ -81,8 +81,9 @@ impl Conf { } } -/// Conf + Conf ==> Conf /// Returns best value or LHS on tie +/// +/// `Conf` + `Conf` → `Conf` impl ConfMergable> for Conf { type Result = Conf; fn merge(self, other: Conf) -> Conf { @@ -94,8 +95,9 @@ impl ConfMergable> for Conf { } } -/// Conf + Option> ==> Conf /// Returns LHS if RHS is None +/// +/// `Conf` + `Option>` → `Conf` impl ConfMergable>> for Conf { type Result = Conf; fn merge(self, other: Option>) -> Conf { @@ -106,8 +108,9 @@ impl ConfMergable>> for Conf { } } -/// Option> + Conf ==> Conf /// Returns RHS if LHS is None +/// +/// `Option>` + `Conf` → `Conf` impl ConfMergable> for Option> { type Result = Conf; fn merge(self, other: Conf) -> Conf { @@ -118,8 +121,9 @@ impl ConfMergable> for Option> { } } -/// Option> + Option> ==> Option> /// Returns best non-None value or None +/// +/// `Option>` + `Option>` → `Option>` impl ConfMergable>> for Option> { type Result = Option>; fn merge(self, other: Option>) -> Option> { -- cgit v1.3.1