#[non_exhaustive]pub enum PreviewFeature {
TestInfra,
}Expand description
A preview feature that can be enabled with --preview.
Preview features are in-progress language additions that:
- May change or be removed before stabilization
- Require explicit opt-in via
--preview <feature> - Allow incremental implementation to be merged to main
See ADR-0005 for the full design.
When all preview features are stabilized, this enum may be empty. New preview features are added here as development begins.
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.
TestInfra
Testing infrastructure feature - permanently unstable. Used to verify the preview feature gating mechanism works.
Implementations§
Source§impl PreviewFeature
impl PreviewFeature
Sourcepub fn all() -> &'static [PreviewFeature]
pub fn all() -> &'static [PreviewFeature]
Get all available preview features.
Trait Implementations§
Source§impl Clone for PreviewFeature
impl Clone for PreviewFeature
Source§fn clone(&self) -> PreviewFeature
fn clone(&self) -> PreviewFeature
Returns a duplicate of the value. Read more
1.0.0 · 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 PreviewFeature
impl Debug for PreviewFeature
Source§impl Display for PreviewFeature
impl Display for PreviewFeature
Source§impl FromStr for PreviewFeature
impl FromStr for PreviewFeature
Source§impl Hash for PreviewFeature
impl Hash for PreviewFeature
Source§impl PartialEq for PreviewFeature
impl PartialEq for PreviewFeature
impl Copy for PreviewFeature
impl Eq for PreviewFeature
impl StructuralPartialEq for PreviewFeature
Auto Trait Implementations§
impl Freeze for PreviewFeature
impl RefUnwindSafe for PreviewFeature
impl Send for PreviewFeature
impl Sync for PreviewFeature
impl Unpin for PreviewFeature
impl UnwindSafe for PreviewFeature
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