Skip to main content

luaur_analysis/records/
explicit_function_annotation_recommended.rs

1use crate::type_aliases::type_id::TypeId;
2use alloc::string::String;
3use alloc::vec::Vec;
4
5#[derive(Debug, Clone, PartialEq, Eq, Hash)]
6pub struct ExplicitFunctionAnnotationRecommended {
7    pub(crate) recommended_args: Vec<(String, TypeId)>,
8    pub(crate) recommended_return: TypeId,
9}
10
11#[allow(non_snake_case)]
12impl ExplicitFunctionAnnotationRecommended {
13    pub fn recommendedArgs(&self) -> &[(String, TypeId)] {
14        &self.recommended_args
15    }
16
17    pub fn recommendedReturn(&self) -> TypeId {
18        self.recommended_return
19    }
20}