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 is_colon_define: bool,
/* private fields */
}Fields§
§generic_params: Vec<(String, Option<LuaType>)>§overloads: Vec<Arc<LuaFunctionType>>§param_docs: HashMap<usize, LuaDocParamInfo>§params: Vec<String>§return_docs: Vec<LuaDocReturnInfo>§is_colon_define: boolImplementations§
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_info_by_id(&self, idx: usize) -> Option<&LuaDocParamInfo>
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