pub struct EnabledEditions { /* private fields */ }Expand description
The editions enabled for writing in a session.
At most one edition is enabled per family. Enabling a newer or older edition from the
same family replaces the previous selection. This is separate from EditionSession:
registration describes what a session knows how to reason about, while enabling is the
explicit writer policy.
Backed by an ArcSwapMap keyed by edition family, so clones observe the same selection
and enabling an edition replaces the family’s previous entry.
Implementations§
Trait Implementations§
Source§impl Clone for EnabledEditions
impl Clone for EnabledEditions
Source§fn clone(&self) -> EnabledEditions
fn clone(&self) -> EnabledEditions
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 EnabledEditions
impl Debug for EnabledEditions
Source§impl Default for EnabledEditions
impl Default for EnabledEditions
Source§fn default() -> EnabledEditions
fn default() -> EnabledEditions
Returns the “default value” for a type. Read more
Source§impl SessionVar for EnabledEditions
impl SessionVar for EnabledEditions
Auto Trait Implementations§
impl Freeze for EnabledEditions
impl RefUnwindSafe for EnabledEditions
impl Send for EnabledEditions
impl Sync for EnabledEditions
impl Unpin for EnabledEditions
impl UnsafeUnpin for EnabledEditions
impl UnwindSafe for EnabledEditions
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