#[non_exhaustive]pub enum VersionMatch {
Exact,
PresetOlder,
PresetNewer,
}Expand description
How the running OS version relates to the generation of the preset the
pipeline merged the platform reader’s output over
(SystemTheme::version_match).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Exact
The running version lies between the first version of the preset’s generation and the newest version its values were verified on.
PresetOlder
The running OS is newer than any version the preset was verified on:
the preset may carry an older look than the OS draws (macOS 27 under
macos-tahoe).
PresetNewer
The running OS predates the preset’s generation: the preset carries a
newer look than the OS draws (Windows 10 under windows-11).
Implementations§
Trait Implementations§
Source§impl Clone for VersionMatch
impl Clone for VersionMatch
impl Copy for VersionMatch
Source§impl Debug for VersionMatch
impl Debug for VersionMatch
Source§impl Display for VersionMatch
impl Display for VersionMatch
impl Eq for VersionMatch
Source§impl Hash for VersionMatch
impl Hash for VersionMatch
Source§impl PartialEq for VersionMatch
impl PartialEq for VersionMatch
impl StructuralPartialEq for VersionMatch
Auto Trait Implementations§
impl Forget for VersionMatch
impl Freeze for VersionMatch
impl Move for VersionMatch
impl RefUnwindSafe for VersionMatch
impl Send for VersionMatch
impl Sync for VersionMatch
impl Unpin for VersionMatch
impl UnsafeUnpin for VersionMatch
impl UnwindSafe for VersionMatch
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