mirror of
https://github.com/bevyengine/bevy.git
synced 2026-07-01 00:05:45 -04:00
Link to Overloading Functions section in docs
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user