pub struct BrowserCompatibility {
pub chrome_min: u32,
pub firefox_min: u32,
pub safari_min: u32,
}Expand description
Browser compatibility checker
Fields§
§chrome_min: u32Chrome version requirement
firefox_min: u32Firefox version requirement
safari_min: u32Safari version requirement
Implementations§
Source§impl BrowserCompatibility
impl BrowserCompatibility
Sourcepub fn supports_chrome(&self, version: u32) -> bool
pub fn supports_chrome(&self, version: u32) -> bool
Check Chrome compatibility
Sourcepub fn supports_firefox(&self, version: u32) -> bool
pub fn supports_firefox(&self, version: u32) -> bool
Check Firefox compatibility
Sourcepub fn supports_safari(&self, version: u32) -> bool
pub fn supports_safari(&self, version: u32) -> bool
Check Safari compatibility
Trait Implementations§
Source§impl Clone for BrowserCompatibility
impl Clone for BrowserCompatibility
Source§fn clone(&self) -> BrowserCompatibility
fn clone(&self) -> BrowserCompatibility
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for BrowserCompatibility
impl Debug for BrowserCompatibility
Source§impl Default for BrowserCompatibility
impl Default for BrowserCompatibility
Source§fn default() -> BrowserCompatibility
fn default() -> BrowserCompatibility
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for BrowserCompatibility
impl RefUnwindSafe for BrowserCompatibility
impl Send for BrowserCompatibility
impl Sync for BrowserCompatibility
impl Unpin for BrowserCompatibility
impl UnsafeUnpin for BrowserCompatibility
impl UnwindSafe for BrowserCompatibility
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<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more