Struct handlr_regex::common::Handler
source · pub struct Handler(_);Implementations§
source§impl Handler
impl Handler
pub fn assume_valid(name: OsString) -> Self
pub fn get_path(name: &OsStr) -> Option<PathBuf>
pub fn resolve(name: OsString) -> Result<Self>
pub fn get_entry(&self) -> Result<DesktopEntry>
pub fn launch(&self, args: Vec<String>) -> Result<()>
pub fn open(&self, args: Vec<String>) -> Result<()>
Trait Implementations§
source§impl Ord for Handler
impl Ord for Handler
source§impl PartialEq<Handler> for Handler
impl PartialEq<Handler> for Handler
source§impl PartialOrd<Handler> for Handler
impl PartialOrd<Handler> for Handler
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
This method tests less than or equal to (for
self and other) and is used by the <=
operator. Read moreimpl Eq for Handler
impl StructuralEq for Handler
impl StructuralPartialEq for Handler
Auto Trait Implementations§
impl RefUnwindSafe for Handler
impl Send for Handler
impl Sync for Handler
impl Unpin for Handler
impl UnwindSafe for Handler
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
source§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere Q: Eq + ?Sized, K: Borrow<Q> + ?Sized,
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.