luaur_analysis/records/
checked_function_incorrect_args.rs1use alloc::string::String;
2
3#[derive(Debug, Clone, PartialEq, Eq, Hash)]
4pub struct CheckedFunctionIncorrectArgs {
5 pub(crate) functionName: String,
6 pub(crate) expected: usize,
7 pub(crate) actual: usize,
8}
9
10impl CheckedFunctionIncorrectArgs {
11 pub const fn new(function_name: String, expected: usize, actual: usize) -> Self {
12 Self {
13 functionName: function_name,
14 expected,
15 actual,
16 }
17 }
18}
19
20#[allow(non_snake_case)]
21impl CheckedFunctionIncorrectArgs {
22 pub fn functionName(&self) -> &str {
23 &self.functionName
24 }
25
26 pub fn expected(&self) -> usize {
27 self.expected
28 }
29
30 pub fn actual(&self) -> usize {
31 self.actual
32 }
33}