Skip to content

Commit 4684e60

Browse files
committed
Make StructRole::to_name public
1 parent 2247601 commit 4684e60

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/structure.rs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,8 @@ pub enum StructRole {
870870
}
871871

872872
impl StructRole {
873-
pub(crate) fn to_name(self) -> Name<'static> {
873+
/// Convert the role into its [`Name`] serialization.
874+
pub fn to_name(self) -> Name<'static> {
874875
match self {
875876
Self::Document => Name(b"Document"),
876877
Self::Part => Name(b"Part"),

0 commit comments

Comments
 (0)