add ctor for Interfaces

This commit is contained in:
vms 2021-03-15 13:06:39 +03:00
parent 5758fa66c6
commit bdd285810e

View File

@ -139,3 +139,16 @@ pub struct Interfaces<'input> {
/// All the implementations.
pub implementations: Vec<Implementation>,
}
impl Interfaces {
pub fn from_version(version: semver::Version) -> Self {
Self {
version,
types: Vec::new(),
imports: Vec::new(),
adapters: Vec::new(),
exports: Vec::new(),
implementations: Vec::new(),
}
}
}