#[non_exhaustive]pub enum ElementKind {
Container,
Component,
Bin,
Tests,
Examples,
External(String),
}Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Container
A crate or package.
Component
A module.
Bin
A binary’s root beside a crate’s lib: an entry point, not a module
of the lib. Also tagged bin.
Tests
A crate’s integration tests and benches, as one element. Also
tagged tests.
Examples
A crate’s examples, as one element. Also tagged examples.
External(String)
Something outside the code, from [[externals]]; carries the
LikeC4 element kind name (process, browser, …).
Implementations§
Source§impl ElementKind
impl ElementKind
Sourcepub fn keyword(&self) -> &str
pub fn keyword(&self) -> &str
The element kind declared in the LikeC4 specification: a
SURVEY_KINDS name, or an external’s own kind name. [theme]
keys are these.
Trait Implementations§
Source§impl Clone for ElementKind
impl Clone for ElementKind
Source§impl Debug for ElementKind
impl Debug for ElementKind
impl Eq for ElementKind
Source§impl PartialEq for ElementKind
impl PartialEq for ElementKind
impl StructuralPartialEq for ElementKind
Auto Trait Implementations§
impl Freeze for ElementKind
impl RefUnwindSafe for ElementKind
impl Send for ElementKind
impl Sync for ElementKind
impl Unpin for ElementKind
impl UnsafeUnpin for ElementKind
impl UnwindSafe for ElementKind
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more