[−][src]Struct broot::command::CommandParts
An intermediate parsed representation of the raw string
Fields
pattern: Option<String>
regex_flags: Option<String>
verb_invocation: Option<VerbInvocation>
Implementations
impl CommandParts
[src]
pub fn new() -> CommandParts
[src]
pub fn from(raw: &str) -> Self
[src]
pub fn split(raw: &str) -> (Option<String>, Option<String>)
[src]
split an input into its two possible parts, the pattern and the verb invocation. Each part, when defined, is suitable to create a command on its own.
Trait Implementations
impl Clone for CommandParts
[src]
fn clone(&self) -> CommandParts
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for CommandParts
[src]
impl Default for CommandParts
[src]
fn default() -> CommandParts
[src]
Auto Trait Implementations
impl RefUnwindSafe for CommandParts
impl Send for CommandParts
impl Sync for CommandParts
impl Unpin for CommandParts
impl UnwindSafe for CommandParts
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,