Enum tauri_utils::platform::Target
source · pub enum Target {
Darwin,
Windows,
Linux,
Android,
Ios,
}
Expand description
Platform target.
Variants§
Implementations§
source§impl Target
impl Target
sourcepub fn from_triple(target: &str) -> Self
pub fn from_triple(target: &str) -> Self
Parses the target from the given target triple.
sourcepub fn is_desktop(&self) -> bool
pub fn is_desktop(&self) -> bool
Whether the target is desktop or not.
Trait Implementations§
source§impl PartialEq for Target
impl PartialEq for Target
impl Copy for Target
impl Eq for Target
impl StructuralEq for Target
impl StructuralPartialEq for Target
Auto Trait Implementations§
impl RefUnwindSafe for Target
impl Send for Target
impl Sync for Target
impl Unpin for Target
impl UnwindSafe for Target
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 Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key
and return true
if they are equal.