Struct garden::model::NamedVariable
source · [−]pub struct NamedVariable { /* private fields */ }
Implementations
sourceimpl NamedVariable
impl NamedVariable
pub fn new(name: String, expr: String, value: Option<String>) -> Self
pub fn get_name(&self) -> &String
pub fn get_expr(&self) -> &String
pub fn set_expr(&mut self, expr: String)
pub fn set_value(&self, value: String)
pub fn get_value(&self) -> Option<&String>
pub fn reset(&self)
Trait Implementations
sourceimpl Clone for NamedVariable
impl Clone for NamedVariable
sourcefn clone(&self) -> NamedVariable
fn clone(&self) -> NamedVariable
Returns a copy of the value. Read more
1.0.0 · sourcefn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read more
sourceimpl Debug for NamedVariable
impl Debug for NamedVariable
Auto Trait Implementations
impl !RefUnwindSafe for NamedVariable
impl Send for NamedVariable
impl !Sync for NamedVariable
impl Unpin for NamedVariable
impl UnwindSafe for NamedVariable
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more