Enum hotdrink_rs::builders::value_experiments::Value [−][src]
A value in the constraint system.
Variants
Ref(Arc<T>)
A value that is only read.
A value that is mutated in-place.
Implementations
impl<T> Value<T>
[src]
impl<T> Value<T>
[src]pub fn read(&self) -> ValueReadGuard<'_, T>
[src]
Returns a ValueReadGuard
that provides an immutable reference to the inner value.
pub fn write(&self) -> Option<ValueWriteGuard<'_, T>>
[src]
Returns a ValueWriteGuard
that provides a mutable reference to the inner value.
pub fn update(&mut self, new_value: T)
[src]
Updates the inner value of the Value
.
This should not change its writability.
pub fn is_mutable(&self) -> bool
[src]
Returns true if the inner value can be mutated in-place.
Trait Implementations
Auto Trait Implementations
impl<T> RefUnwindSafe for Value<T> where
T: RefUnwindSafe,
impl<T> RefUnwindSafe for Value<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Value<T> where
T: RefUnwindSafe,
impl<T> UnwindSafe for Value<T> where
T: RefUnwindSafe,