pub struct Variable {
pub name: String,
pub value: BaseTypes,
pub var_type: BaseTypes,
}Fields§
§name: String§value: BaseTypes§var_type: BaseTypesImplementations§
Source§impl Variable
impl Variable
pub fn new(name: String, value: BaseTypes, var_type: BaseTypes) -> Variable
pub fn set_name(&mut self, name: String)
pub fn set_type(&mut self, var_type: BaseTypes)
pub fn set_value<T>(&mut self, value: T)
pub fn get_value(&self) -> &BaseTypes
pub fn increment(&mut self)
pub fn decrement(&mut self)
pub fn print(&self)
Trait Implementations§
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit)