luaur_analysis/records/module_has_cyclic_dependency.rs
1use alloc::string::String;
2use alloc::vec::Vec;
3
4#[derive(Debug, Clone, PartialEq, Eq, Hash)]
5pub struct ModuleHasCyclicDependency {
6 pub(crate) cycle: Vec<String>,
7}
8
9impl ModuleHasCyclicDependency {
10 pub const fn new(cycle: Vec<String>) -> Self {
11 Self { cycle }
12 }
13}
14
15#[allow(non_snake_case)]
16impl ModuleHasCyclicDependency {
17 pub fn cycle(&self) -> &[String] {
18 &self.cycle
19 }
20}