Struct cameleon::genapi::DefaultValueStore
source · pub struct DefaultValueStore(_);
Implementations§
source§impl DefaultValueStore
impl DefaultValueStore
pub fn new() -> DefaultValueStore
Trait Implementations§
source§impl Debug for DefaultValueStore
impl Debug for DefaultValueStore
source§impl Default for DefaultValueStore
impl Default for DefaultValueStore
source§fn default() -> DefaultValueStore
fn default() -> DefaultValueStore
Returns the “default value” for a type. Read more
source§impl ValueStore for DefaultValueStore
impl ValueStore for DefaultValueStore
fn value_opt<T>(&self, id: T) -> Option<&ValueData>where T: Into<ValueId>,
fn update<T, U>(&mut self, id: T, value: U) -> Option<ValueData>where T: Into<ValueId>, U: Into<ValueData>,
fn value(&self, id: impl Into<ValueId>) -> &ValueData
fn integer_value<T>(&self, id: T) -> Option<i64>where T: Into<ValueId>,
fn float_value<T>(&self, id: T) -> Option<f64>where T: Into<ValueId>,
fn str_value<T>(&self, id: T) -> Option<&String>where T: Into<ValueId>,
Auto Trait Implementations§
impl RefUnwindSafe for DefaultValueStore
impl Send for DefaultValueStore
impl Sync for DefaultValueStore
impl Unpin for DefaultValueStore
impl UnwindSafe for DefaultValueStore
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