pub struct LuaSignature {
pub generic_params: Vec<(String, Option<LuaType>)>,
pub overloads: Vec<Arc<LuaFunctionType>>,
pub param_docs: HashMap<usize, LuaDocParamInfo>,
pub params: Vec<String>,
pub return_docs: Vec<LuaDocReturnInfo>,
pub resolve_return: SignatureReturnStatus,
pub is_colon_define: bool,
pub is_async: bool,
pub nodiscard: Option<LuaNoDiscard>,
}
Fields§
§generic_params: Vec<(String, Option<LuaType>)>
§overloads: Vec<Arc<LuaFunctionType>>
§param_docs: HashMap<usize, LuaDocParamInfo>
§params: Vec<String>
§return_docs: Vec<LuaDocReturnInfo>
§resolve_return: SignatureReturnStatus
§is_colon_define: bool
§is_async: bool
§nodiscard: Option<LuaNoDiscard>
Implementations§
Source§impl LuaSignature
impl LuaSignature
pub fn new() -> Self
pub fn is_generic(&self) -> bool
pub fn is_resolve_return(&self) -> bool
pub fn get_type_params(&self) -> Vec<(String, Option<LuaType>)>
pub fn find_param_idx(&self, param_name: &str) -> Option<usize>
pub fn get_param_info_by_name( &self, param_name: &str, ) -> Option<&LuaDocParamInfo>
pub fn get_param_name_by_id(&self, idx: usize) -> Option<String>
pub fn get_param_info_by_id(&self, idx: usize) -> Option<&LuaDocParamInfo>
pub fn get_return_type(&self) -> LuaType
pub fn is_method( &self, semantic_model: &SemanticModel<'_>, owner_type: Option<&LuaType>, ) -> bool
pub fn to_doc_func_type(&self) -> Arc<LuaFunctionType>
pub fn to_call_operator_func_type(&self) -> Arc<LuaFunctionType>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for LuaSignature
impl RefUnwindSafe for LuaSignature
impl Send for LuaSignature
impl Sync for LuaSignature
impl Unpin for LuaSignature
impl UnwindSafe for LuaSignature
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more