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§
source§impl 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 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§
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