pub struct Variable { /* private fields */ }
Implementations§
Source§impl Variable
impl Variable
pub fn var(name: String, typ: CortexType, value: CortexValue) -> Self
pub fn constant(name: String, typ: CortexType, value: CortexValue) -> Self
pub fn value(&self) -> &CortexValue
pub fn value_mut(&mut self) -> &mut CortexValue
pub fn typ(&self) -> &CortexType
pub fn name(&self) -> &String
pub fn set(&mut self, value: CortexValue) -> Result<(), EnvError>
Auto Trait Implementations§
impl Freeze for Variable
impl RefUnwindSafe for Variable
impl Send for Variable
impl Sync for Variable
impl Unpin for Variable
impl UnwindSafe for Variable
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