pub struct ExperimentalFeatures {
enabled: bool,
}
Expand description
Token of the user agreeing to access experimental features.
Fields§
§enabled: bool
Implementations§
Source§impl ExperimentalFeatures
impl ExperimentalFeatures
Sourcepub const fn disabled() -> ExperimentalFeatures
pub const fn disabled() -> ExperimentalFeatures
Uses of Features
prefixed with “EXPERIMENTAL” are disallowed.
Sourcepub const unsafe fn enabled() -> ExperimentalFeatures
pub const unsafe fn enabled() -> ExperimentalFeatures
Uses of Features
prefixed with “EXPERIMENTAL” may result
in undefined behavior when used incorrectly. The exact bounds
of these issues varies by the feature. These instances are
inherently bugs in our implementation that we will eventually fix.
By giving access to still work-in-progress APIs, users can get access to newer technology sooner, and we can work with users to fix bugs quicker.
Look inside our repo at the api-specs
for more information
on various experimental apis.
§Safety
- You acknowledge that there may be UB-containing bugs in these apis and those may be hit by calling otherwise safe code.
- You agree to report any such bugs to us, if you find them.
Sourcepub const fn is_enabled(&self) -> bool
pub const fn is_enabled(&self) -> bool
Returns true if the user has agreed to access experimental features.
Trait Implementations§
Source§impl Clone for ExperimentalFeatures
impl Clone for ExperimentalFeatures
Source§fn clone(&self) -> ExperimentalFeatures
fn clone(&self) -> ExperimentalFeatures
Returns a copy 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 ExperimentalFeatures
impl Debug for ExperimentalFeatures
Source§impl Default for ExperimentalFeatures
impl Default for ExperimentalFeatures
Source§fn default() -> ExperimentalFeatures
fn default() -> ExperimentalFeatures
Returns the “default value” for a type. Read more
impl Copy for ExperimentalFeatures
Auto Trait Implementations§
impl Freeze for ExperimentalFeatures
impl RefUnwindSafe for ExperimentalFeatures
impl Send for ExperimentalFeatures
impl Sync for ExperimentalFeatures
impl Unpin for ExperimentalFeatures
impl UnwindSafe for ExperimentalFeatures
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