Skip to main content

cycle

Function cycle 

Source
pub fn cycle(
    enabled: &[VendorId],
    start: VendorId,
    delta: i32,
) -> Result<VendorId>
Expand description

Cycle the active vendor by delta positions through enabled (which preserves canonical order). Wraps. If no state exists, starts at start (usually [ui] primary or anthropic).