sysml_model/import.rs
1// This is free and unencumbered software released into the public domain.
2
3use crate::Relationship;
4
5pub trait Import: Relationship {
6 fn visibility(&self) -> VisibilityKind {
7 VisibilityKind::Public
8 }
9
10 fn is_recursive(&self) -> bool {
11 false
12 }
13
14 fn is_import_all(&self) -> bool {
15 false
16 }
17}
18
19#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
20pub enum VisibilityKind {
21 #[default]
22 Public,
23 Private,
24 Protected,
25}