pub struct EnvVars<'a>(/* private fields */);Expand description
A restricted view of Environment that exposes only variable operations.
Passed to CommandHandlerWithEnv closures so that handlers
can read and write REXX variables without access to ADDRESS routing,
PROCEDURE scoping, or other evaluator-internal state.
Implementations§
Source§impl<'a> EnvVars<'a>
impl<'a> EnvVars<'a>
Sourcepub fn get_compound(&self, stem: &str, resolved_tail: &str) -> RexxValue
pub fn get_compound(&self, stem: &str, resolved_tail: &str) -> RexxValue
Get a compound variable: stem.tail.
Sourcepub fn set_compound(
&mut self,
stem: &str,
resolved_tail: &str,
value: RexxValue,
)
pub fn set_compound( &mut self, stem: &str, resolved_tail: &str, value: RexxValue, )
Set a compound variable.
Sourcepub fn set_stem_default(&mut self, stem: &str, value: RexxValue)
pub fn set_stem_default(&mut self, stem: &str, value: RexxValue)
Set the default value for a stem (e.g., stem. = 0).
Sourcepub fn is_compound_set(&self, stem: &str, resolved_tail: &str) -> bool
pub fn is_compound_set(&self, stem: &str, resolved_tail: &str) -> bool
Check whether a compound variable is set.
Auto Trait Implementations§
impl<'a> Freeze for EnvVars<'a>
impl<'a> RefUnwindSafe for EnvVars<'a>
impl<'a> Send for EnvVars<'a>
impl<'a> Sync for EnvVars<'a>
impl<'a> Unpin for EnvVars<'a>
impl<'a> UnsafeUnpin for EnvVars<'a>
impl<'a> !UnwindSafe for EnvVars<'a>
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