Enum wasm_react::ValueContainer
source · #[non_exhaustive]pub enum ValueContainer<T> {
}
Expand description
An abstraction over structs that contain a value which can be accessed
through an immutable borrow or Ref
.
Can contain all hook containers and Rc<T>
, Rc<RefCell<T>>
.
Implementations§
source§impl<T: 'static> ValueContainer<T>
impl<T: 'static> ValueContainer<T>
sourcepub fn value(&self) -> ValueContainerRef<'_, T>
pub fn value(&self) -> ValueContainerRef<'_, T>
Returns a read-only reference to the underlying value.
Trait Implementations§
source§impl<T> Clone for ValueContainer<T>
impl<T> Clone for ValueContainer<T>
source§impl<T: Debug> Debug for ValueContainer<T>
impl<T: Debug> Debug for ValueContainer<T>
source§impl<T> From<DeferredValue<T>> for ValueContainer<T>
impl<T> From<DeferredValue<T>> for ValueContainer<T>
source§fn from(value: DeferredValue<T>) -> Self
fn from(value: DeferredValue<T>) -> Self
Converts to this type from the input type.
source§impl<T> From<Memo<T>> for ValueContainer<T>
impl<T> From<Memo<T>> for ValueContainer<T>
source§impl<T> From<RefContainer<T>> for ValueContainer<T>
impl<T> From<RefContainer<T>> for ValueContainer<T>
source§fn from(value: RefContainer<T>) -> Self
fn from(value: RefContainer<T>) -> Self
Converts to this type from the input type.
source§impl<T> From<State<T>> for ValueContainer<T>
impl<T> From<State<T>> for ValueContainer<T>
source§impl<T> From<T> for ValueContainer<T>
impl<T> From<T> for ValueContainer<T>
Auto Trait Implementations§
impl<T> !RefUnwindSafe for ValueContainer<T>
impl<T> !Send for ValueContainer<T>
impl<T> !Sync for ValueContainer<T>
impl<T> Unpin for ValueContainer<T>
impl<T> !UnwindSafe for ValueContainer<T>
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