Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Interface SpaceKind #810

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Adds Interface SpaceKind
  • Loading branch information
dburriss committed Mar 24, 2022
commit 18344fbd0d06b71199c9bef5b9dbbfde42663562
3 changes: 3 additions & 0 deletions src/spaces.rs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ pub enum SpaceKind {
Unit,
/// A `C/C++` namespace
Namespace,
/// An interface
Interface,
}

impl fmt::Display for SpaceKind {
Expand All @@ -51,6 +53,7 @@ impl fmt::Display for SpaceKind {
SpaceKind::Impl => "impl",
SpaceKind::Unit => "unit",
SpaceKind::Namespace => "namespace",
SpaceKind::Interface => "interface",
};
write!(f, "{}", s)
}
Expand Down