Function end_with

Source
pub fn end_with<S: Into<StrCow>, R>(name: S, result: R) -> R
Expand description

Ends the current Span and returns a given result.

This is mainly useful for code generation / plugins where wrapping all returned expressions is easier than creating a temporary variable to hold the result.