diff --git a/src/elements/section.rs b/src/elements/section.rs index 285a3c6..9bc6988 100644 --- a/src/elements/section.rs +++ b/src/elements/section.rs @@ -287,6 +287,10 @@ pub struct CustomSection { } impl CustomSection { + /// Creates a new custom section with the given name and payload + pub fn new(name: String, payload: Vec) -> CustomSection { + CustomSection { name, payload } + } /// Name of the custom section pub fn name(&self) -> &str {