Enum terminal2::MaybeNavigationTarget
source · pub enum MaybeNavigationTarget {
Url(String),
PathLike(String),
}
Expand description
A string inside terminal, potentially useful as a URI that can be opened.
Variants§
Url(String)
HTTP, git, etc. string determined by the [URL_REGEX
] regex.
PathLike(String)
File system path, absolute or relative, existing or not.
Might have line and column number(s) attached as file.rs:1:23
Trait Implementations§
source§fn clone(&self) -> MaybeNavigationTarget
fn clone(&self) -> MaybeNavigationTarget
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreAuto Trait Implementations§
Blanket Implementations§
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more