diff --git a/src/disco.rs b/src/disco.rs
index d61cf361dc3b3258bc238aa11f391fe22dfb282c..ee673b8f92f0bfa314f4b4abfdf903725c7893f6 100644
--- a/src/disco.rs
+++ b/src/disco.rs
@@ -34,6 +34,15 @@ attributes: [
var: String = "var" => required,
]);
+impl Feature {
+ /// Create a new `` with the according `@var`.
+ pub fn new(var: &str) -> Feature {
+ Feature {
+ var: String::from(var)
+ }
+ }
+}
+
/// Structure representing an `` element.
#[derive(Debug, Clone)]
pub struct Identity {