[go: up one dir, main page]

Function some

Source
pub fn some(v: &str) -> Option<&str>
Expand description

Convert a string into an option based on whether it is empty.

This takes a string v and tests whether it is empty. If it is, it will yield None, otherwise it will yield Some(v).