Struct ExperimentalFeatures
pub struct ExperimentalFeatures {
enabled: bool,
}Expand description
Token of the user agreeing to access experimental features.
Fields§
§enabled: boolImplementations§
§impl ExperimentalFeatures
impl ExperimentalFeatures
pub const fn default() -> ExperimentalFeatures
pub const fn default() -> ExperimentalFeatures
This function is identical to Default::default() except that it is a const fn.
§impl ExperimentalFeatures
impl ExperimentalFeatures
pub const fn disabled() -> ExperimentalFeatures
pub const fn disabled() -> ExperimentalFeatures
Uses of Features prefixed with “EXPERIMENTAL” are disallowed.
pub 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.
pub 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§
§impl Clone for ExperimentalFeatures
impl Clone for ExperimentalFeatures
§fn clone(&self) -> ExperimentalFeatures
fn clone(&self) -> ExperimentalFeatures
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 more§impl Debug for ExperimentalFeatures
impl Debug for ExperimentalFeatures
§impl Default for ExperimentalFeatures
impl Default for ExperimentalFeatures
§fn default() -> ExperimentalFeatures
fn default() -> ExperimentalFeatures
Returns the “default value” for a type. Read more
§impl PartialEq for ExperimentalFeatures
impl PartialEq for ExperimentalFeatures
impl Copy for ExperimentalFeatures
impl Eq for ExperimentalFeatures
impl StructuralPartialEq 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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more