Include decimal in generated docs.

This commit is contained in:
Stephen Chung
2021-02-21 14:26:31 +08:00
parent dd3b16403f
commit 4120e3c88e
4 changed files with 6 additions and 6 deletions

View File

@@ -1357,10 +1357,10 @@ impl Dynamic {
_ => Err(self.type_name()),
}
}
/// Cast the [`Dynamic`] as a [`Decimal`] and return it.
/// _(DECIMAL)_ Cast the [`Dynamic`] as a [`Decimal`] and return it.
/// Returns the name of the actual type if the cast fails.
///
/// Available only under `decimal`.
/// Exported under the `decimal` feature only.
#[cfg(feature = "decimal")]
#[inline(always)]
pub fn as_decimal(self) -> Result<Decimal, &'static str> {