diff options
-rw-r--r-- | src/lib.rs | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -29,6 +29,15 @@ pub struct ReferenceEntry impl ReferenceEntry { + /// Returns a new `ReferenceEntry`. + pub fn new(purpose: &impl ToString, description: Description) -> Self + { + Self { + purpose: purpose.to_string(), + description, + } + } + /// Returns a function reference entry. /// /// # Errors |