Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/DioxusLabs/dioxus-components
/ remove_option_state
Function
remove_option_state
primitives/src/selection.rs:128–130 ·
view source on GitHub ↗
(options: &mut Vec<OptionState>, id: &str)
Source
from the content-addressed store, hash-verified
126
}
127
128
fn remove_option_state(options: &mut Vec<OptionState>, id: &str) {
129
options.retain(|option| option.id != id);
130
}
131
132
#[cfg(test)]
133
mod tests {
Callers
2
remove_option
Function · 0.85
removing_stale_option_does_not_remove_option_that_moved_to_same_index
Function · 0.85
Calls
no outgoing calls
Tested by
1
removing_stale_option_does_not_remove_option_that_moved_to_same_index
Function · 0.68