Skip to content

Commit

Permalink
Add docs to EvaledExpr::fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Gawdl3y committed Mar 19, 2024
1 parent ae6e42b commit 1f20aa9
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/expr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,11 @@ impl Describe for EvaledExpr<'_> {
}

impl std::fmt::Display for EvaledExpr<'_> {
/// Formats the value using the given formatter. [Read more][core::fmt::Debug::fmt()]
///
/// The output of this implementation is equivalent to [`EvaledExpr::describe(None)`].
///
/// [`EvaledExpr::describe(None)`]: ./enum.EvaledExpr.html#method.describe
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
write!(f, "{}", self.describe(None))
}
Expand Down

0 comments on commit 1f20aa9

Please sign in to comment.