Enum rhai_autodocs::options::FunctionOrder
source · pub enum FunctionOrder {
Alphabetical,
ByIndex,
}
Expand description
Select in which order each functions will be displayed.
Variants§
Alphabetical
Display functions by alphabetical order.
ByIndex
Display functions by index using a pre-processing comment with the # rhai-autodocs:index:<number>
syntax.
The # rhai-autodocs:index:<number>
line will be removed in the final generated markdown.
Example
ⓘ
/// Function that will appear first in docs.
///
/// # rhai-autodocs:index:1
#[rhai_fn(global)]
pub fn my_function1() {}
/// Function that will appear second in docs.
///
/// # rhai-autodocs:index:2
#[rhai_fn(global)]
pub fn my_function2() {}
Trait Implementations§
source§impl Default for FunctionOrder
impl Default for FunctionOrder
source§fn default() -> FunctionOrder
fn default() -> FunctionOrder
Returns the “default value” for a type. Read more