pub struct PlatformPreset {
pub name: &'static str,
pub is_live: bool,
}Expand description
Structured information about the platform’s default preset.
Returned by platform_preset_name(). The name field is the
user-facing preset name (e.g. "macos-sonoma"). The is_live field
indicates whether the preset is a live (geometry-only) preset used
by the OS-first pipeline.
Display returns the user-facing name.
Fields§
§name: &'static strUser-facing preset name (e.g. “kde-breeze”, “adwaita”, “macos-sonoma”).
is_live: boolWhether this is a live preset (geometry-only merge base for OS readers).
Implementations§
Trait Implementations§
Source§impl Clone for PlatformPreset
impl Clone for PlatformPreset
Source§fn clone(&self) -> PlatformPreset
fn clone(&self) -> PlatformPreset
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 PlatformPreset
impl Debug for PlatformPreset
Source§impl Display for PlatformPreset
impl Display for PlatformPreset
impl Eq for PlatformPreset
Source§impl PartialEq for PlatformPreset
impl PartialEq for PlatformPreset
impl StructuralPartialEq for PlatformPreset
Auto Trait Implementations§
impl Freeze for PlatformPreset
impl RefUnwindSafe for PlatformPreset
impl Send for PlatformPreset
impl Sync for PlatformPreset
impl Unpin for PlatformPreset
impl UnsafeUnpin for PlatformPreset
impl UnwindSafe for PlatformPreset
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