Struct garden::model::NamedVariable
source · pub struct NamedVariable { /* private fields */ }
Implementations§
source§impl 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§
source§impl Clone for NamedVariable
impl Clone for NamedVariable
source§fn clone(&self) -> NamedVariable
fn clone(&self) -> NamedVariable
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 NamedVariable
impl Debug for NamedVariable
Auto Trait Implementations§
impl !Freeze for NamedVariable
impl !RefUnwindSafe for NamedVariable
impl Send for NamedVariable
impl !Sync for NamedVariable
impl Unpin for NamedVariable
impl UnwindSafe for NamedVariable
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> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more