pub struct FileToOpen {
pub column: i64,
pub line_nbr: i64,
pub path: String,
}Expand description
Represents a file to be opened in an editor with optional line and column positioning.
Fields§
§column: i64The column number to position the cursor (0-based, defaults to 0).
line_nbr: i64The line number to position the cursor (0-based, defaults to 0).
path: StringThe filesystem path to the file.
Trait Implementations§
Source§impl Debug for FileToOpen
impl Debug for FileToOpen
Source§impl FromStr for FileToOpen
Parses a FileToOpen from a string in the format “path:line:column”.
impl FromStr for FileToOpen
Parses a FileToOpen from a string in the format “path:line:column”.
Source§impl PartialEq for FileToOpen
impl PartialEq for FileToOpen
Source§impl TryFrom<(&str, i64, &[WeztermPane])> for FileToOpen
Attempts to create a FileToOpen from a file path, pane ID, and list of panes.
impl TryFrom<(&str, i64, &[WeztermPane])> for FileToOpen
Attempts to create a FileToOpen from a file path, pane ID, and list of panes.
impl Eq for FileToOpen
impl StructuralPartialEq for FileToOpen
Auto Trait Implementations§
impl Freeze for FileToOpen
impl RefUnwindSafe for FileToOpen
impl Send for FileToOpen
impl Sync for FileToOpen
impl Unpin for FileToOpen
impl UnsafeUnpin for FileToOpen
impl UnwindSafe for FileToOpen
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
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.