pub struct Selection<'s> {
pub path: &'s Path,
pub line: LineNumber,
pub stype: SelectionType,
pub is_exe: bool,
}
Expand description
light information about the currently selected file and maybe line number
Fields
path: &'s Path
line: LineNumber
stype: SelectionType
is_exe: bool
Implementations
sourceimpl Selection<'_>
impl Selection<'_>
sourcepub fn to_opener(self, con: &AppContext) -> Result<CmdResult, ProgramError>
pub fn to_opener(self, con: &AppContext) -> Result<CmdResult, ProgramError>
build a CmdResult with a launchable which will be used to 1/ quit broot 2/ open the relevant file the best possible way
Trait Implementations
impl<'s> Copy for Selection<'s>
Auto Trait Implementations
impl<'s> RefUnwindSafe for Selection<'s>
impl<'s> Send for Selection<'s>
impl<'s> Sync for Selection<'s>
impl<'s> Unpin for Selection<'s>
impl<'s> UnwindSafe for Selection<'s>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more