pub struct Sequence {
pub raw: String,
pub separator: String,
}
Expand description
an unparsed sequence with its separator (which may be different from the one provided by local_separator())
Fields§
§raw: String
§separator: String
Implementations§
source§impl Sequence
impl Sequence
sourcepub fn local_separator() -> String
pub fn local_separator() -> String
return the separator to use to parse sequences.
pub fn new<S: Into<String>>(raw: S, separator: Option<S>) -> Self
pub fn new_single(cmd: String) -> Self
pub fn new_local(raw: String) -> Self
pub fn parse( &self, con: &AppContext ) -> Result<Vec<(String, Command)>, ProgramError>
pub fn has_selection_group(&self) -> bool
pub fn has_other_panel_group(&self) -> bool
Trait Implementations§
Auto Trait Implementations§
impl RefUnwindSafe for Sequence
impl Send for Sequence
impl Sync for Sequence
impl Unpin for Sequence
impl UnwindSafe for Sequence
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more