Skip to main content

partition_methods

Function partition_methods 

Source
pub fn partition_methods<'a>(
    methods: &'a [MethodInfo],
    skip: impl Fn(&MethodInfo) -> bool,
) -> PartitionedMethods<'a>
Expand description

Partition methods into leaf commands, static mounts, and slug mounts.

The skip predicate allows each protocol to apply its own skip logic (e.g., #[cli(skip)], #[mcp(skip)]).