[PR #48] [MERGED] Add an example of how to use Name::parse #1208

Closed
opened 2026-03-16 01:54:00 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/hickory-dns/hickory-dns/pull/48
Author: @chaoticsmol
Created: 10/9/2016
Status: Merged
Merged: 10/9/2016
Merged by: @bluejekyll

Base: masterHead: parse-name-example


📝 Commits (1)

  • 4873caf Add an example of how to use Name::parse, since it's such a useful function!

📊 Changes

1 file changed (+11 additions, -0 deletions)

View changed files

📝 src/rr/domain.rs (+11 -0)

📄 Description

The rr::domain::Name::parse function is one of the first things I reached for when I picked up the library. Unfortunately, I had to do some digging to make sure that my usage was correct. Since, in the generated documentation, parse isn't very easy to pick out at present, I thought it could grab people's attention better and be clearer with a little documentation.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/hickory-dns/hickory-dns/pull/48 **Author:** [@chaoticsmol](https://github.com/chaoticsmol) **Created:** 10/9/2016 **Status:** ✅ Merged **Merged:** 10/9/2016 **Merged by:** [@bluejekyll](https://github.com/bluejekyll) **Base:** `master` ← **Head:** `parse-name-example` --- ### 📝 Commits (1) - [`4873caf`](https://github.com/hickory-dns/hickory-dns/commit/4873caf4cb3d4a3d86a36c921f7e0d21d41dbf30) Add an example of how to use Name::parse, since it's such a useful function! ### 📊 Changes **1 file changed** (+11 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/rr/domain.rs` (+11 -0) </details> ### 📄 Description The `rr::domain::Name::parse` function is one of the first things I reached for when I picked up the library. Unfortunately, I had to do some digging to make sure that my usage was correct. Since, in the generated documentation, [parse isn't very easy to pick out](https://docs.rs/trust-dns/0.7.3/trust_dns/rr/domain/struct.Name.html#method.parse) at present, I thought it could grab people's attention better and be clearer with a little documentation. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-16 01:54:00 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/hickory-dns#1208
No description provided.