Enum platform_lp::PartialPlatform
source · pub enum PartialPlatform {
Windows,
Linux,
Mac,
}
Expand description
Platform Partial, designed for ‘fuzzy’ comparisons.
use platform_lp::{ Platform, PartialPlatform};
let the_platform = Platform::get_user_platform();
assert!(the_platform == PartialPlatform::Windows);
Variants
Windows
Linux
Mac
Trait Implementations
sourceimpl Debug for PartialPlatform
impl Debug for PartialPlatform
sourceimpl Hash for PartialPlatform
impl Hash for PartialPlatform
sourceimpl PartialEq<PartialPlatform> for PartialPlatform
impl PartialEq<PartialPlatform> for PartialPlatform
sourcefn eq(&self, other: &PartialPlatform) -> bool
fn eq(&self, other: &PartialPlatform) -> bool
sourceimpl PartialEq<PartialPlatform> for Platform
impl PartialEq<PartialPlatform> for Platform
sourcefn eq(&self, other: &PartialPlatform) -> bool
fn eq(&self, other: &PartialPlatform) -> bool
impl Eq for PartialPlatform
impl StructuralEq for PartialPlatform
impl StructuralPartialEq for PartialPlatform
Auto Trait Implementations
impl RefUnwindSafe for PartialPlatform
impl Send for PartialPlatform
impl Sync for PartialPlatform
impl Unpin for PartialPlatform
impl UnwindSafe for PartialPlatform
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more