Enum broot::verb::ExecPattern
source · pub enum ExecPattern {
String(String),
Array(Vec<String>),
}
Expand description
A pattern which can be expanded into an executable
Variants§
Implementations§
source§impl ExecPattern
impl ExecPattern
pub fn is_empty(&self) -> bool
pub fn has_selection_group(&self) -> bool
pub fn has_other_panel_group(&self) -> bool
pub fn as_internal_pattern(&self) -> Option<&str>
pub fn into_array(self) -> Vec<String> ⓘ
pub fn from_string<T: Into<String>>(t: T) -> Self
pub fn from_array(v: Vec<String>) -> Self
pub fn tokenize(self) -> Self
pub fn apply(&self, f: &dyn Fn(&str) -> String) -> Self
pub fn fix_paths(self) -> Self
Trait Implementations§
source§impl Clone for ExecPattern
impl Clone for ExecPattern
source§fn clone(&self) -> ExecPattern
fn clone(&self) -> ExecPattern
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for ExecPattern
impl Debug for ExecPattern
source§impl<'de> Deserialize<'de> for ExecPattern
impl<'de> Deserialize<'de> for ExecPattern
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more