We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
StructRole::to_name
1 parent 2247601 commit 4684e60Copy full SHA for 4684e60
1 file changed
src/structure.rs
@@ -870,7 +870,8 @@ pub enum StructRole {
870
}
871
872
impl StructRole {
873
- pub(crate) fn to_name(self) -> Name<'static> {
+ /// Convert the role into its [`Name`] serialization.
874
+ pub fn to_name(self) -> Name<'static> {
875
match self {
876
Self::Document => Name(b"Document"),
877
Self::Part => Name(b"Part"),
0 commit comments