pub enum ParamScope {
Nothing,
Just(BTreeMap<u64, Entry>),
}
Expand description
ParameterScope
ParameterScope
is a data structure that stores the current set of named parameters
and their values. ParameterScope
is used to manage the scope of named parameters,
allowing parameters to be defined and used within a specific scope,
and then restored to the previous scope when the scope is exited.
The parameter scope can be used to implement a variety of features, such as named parameters, default parameter values, and parameter inheritance.
Variants§
Nothing
No parameters are defined in the current scope.
Just(BTreeMap<u64, Entry>)
The current scope contains a set of named parameters stored in Params
.
Implementations§
Trait Implementations§
Source§impl Clone for ParamScope
impl Clone for ParamScope
Source§fn clone(&self) -> ParamScope
fn clone(&self) -> ParamScope
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 ParamScope
impl Debug for ParamScope
Source§impl Default for ParamScope
impl Default for ParamScope
Source§impl<K, V> ParamScopeOps<K, V> for ParamScope
impl<K, V> ParamScopeOps<K, V> for ParamScope
Auto Trait Implementations§
impl Freeze for ParamScope
impl RefUnwindSafe for ParamScope
impl Send for ParamScope
impl Sync for ParamScope
impl Unpin for ParamScope
impl UnwindSafe for ParamScope
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