mirror of
https://github.com/bevyengine/bevy
synced 2024-12-19 01:23:09 +00:00
Link to Overloading Functions
section in docs
This commit is contained in:
parent
c3b91562d1
commit
252f3897dc
2 changed files with 6 additions and 2 deletions
|
@ -52,8 +52,10 @@ pub trait Function: PartialReflect + Debug {
|
|||
|
||||
/// Returns the number of arguments the function expects.
|
||||
///
|
||||
/// For overloaded functions that can have a variable number of arguments,
|
||||
/// For [overloaded] functions that can have a variable number of arguments,
|
||||
/// this will contain the full set of counts for all signatures.
|
||||
///
|
||||
/// [overloaded]: crate::func#overloading-functions
|
||||
fn arg_count(&self) -> ArgCount {
|
||||
self.info().arg_count()
|
||||
}
|
||||
|
|
|
@ -146,8 +146,10 @@ impl FunctionInfo {
|
|||
|
||||
/// Returns the number of arguments the function expects.
|
||||
///
|
||||
/// For overloaded functions that can have a variable number of arguments,
|
||||
/// For [overloaded] functions that can have a variable number of arguments,
|
||||
/// this will contain the full set of counts for all signatures.
|
||||
///
|
||||
/// [overloaded]: crate::func#overloading-functions
|
||||
pub fn arg_count(&self) -> ArgCount {
|
||||
self.arg_count
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue