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/binaryview.rs | 2 +- rust/src/lib.rs | 2 +- rust/src/types.rs | 12 ++++++++---- 3 files changed, 10 insertions(+), 6 deletions(-) (limited to 'rust/src') diff --git a/rust/src/binaryview.rs b/rust/src/binaryview.rs index c14636de..ad9a0fc9 100644 --- a/rust/src/binaryview.rs +++ b/rust/src/binaryview.rs @@ -794,7 +794,7 @@ pub trait BinaryViewExt: BinaryViewBase { /// Get a tag type by its name. /// - /// Shorthand for [get_tag_type_by_name]. + /// Shorthand for [Self::get_tag_type_by_name]. fn get_tag_type(&self, name: S) -> Option> { self.get_tag_type_by_name(name) } diff --git a/rust/src/lib.rs b/rust/src/lib.rs index 42d211b8..19414a22 100644 --- a/rust/src/lib.rs +++ b/rust/src/lib.rs @@ -31,7 +31,7 @@ //! //! > ⚠️ **These bindings are in a very early beta, only have partial support for the core APIs and are still actively under development. Compatibility _will_ break and conventions _will_ change! They are being used for core Binary Ninja features however, so we expect much of what is already there to be reliable enough to build on, just don't be surprised if your plugins/scripts need to hit a moving target.** //! -//! > ⚠️ This project runs on Rust version `stable-2022-04-07` +//! > ⚠️ This project runs on Rust version `stable-2022-12-15` //! //! --- //! 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