pub enum HostFeature {
UiSurfaces,
UiWidget,
UiComposition,
UiWidgetData,
UiCommands,
UiAssistantSlot,
UiWidgetUiOnly,
}Expand description
A manifest construct that only some host releases understand.
Variants§
Implementations§
Source§impl HostFeature
impl HostFeature
pub const ALL: [HostFeature; 7]
pub fn from_id(id: &str) -> Option<HostFeature>
pub fn unlocks(self) -> &'static str
pub fn derived_when(self) -> &'static str
Sourcepub fn since(self) -> HostVersion
pub fn since(self) -> HostVersion
First host release that supports this feature.
Trait Implementations§
Source§impl Clone for HostFeature
impl Clone for HostFeature
impl Copy for HostFeature
Source§impl Debug for HostFeature
impl Debug for HostFeature
impl Eq for HostFeature
Source§impl Hash for HostFeature
impl Hash for HostFeature
Source§impl Ord for HostFeature
impl Ord for HostFeature
1.21.0 (const: unstable) · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
1.21.0 (const: unstable) · Source§fn min(self, other: Self) -> Selfwhere
Self: Sized,
fn min(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the minimum of two values. Read more
Source§impl PartialEq for HostFeature
impl PartialEq for HostFeature
Source§impl PartialOrd for HostFeature
impl PartialOrd for HostFeature
impl StructuralPartialEq for HostFeature
Auto Trait Implementations§
impl Freeze for HostFeature
impl RefUnwindSafe for HostFeature
impl Send for HostFeature
impl Sync for HostFeature
impl Unpin for HostFeature
impl UnsafeUnpin for HostFeature
impl UnwindSafe for HostFeature
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