Enum wasm_react::ValueContainer
source · [−]#[non_exhaustive]
pub enum ValueContainer<T> {
// some variants omitted
}
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
sourceimpl<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
sourceimpl<T> Clone for ValueContainer<T>
impl<T> Clone for ValueContainer<T>
sourceimpl<T: Debug> Debug for ValueContainer<T>
impl<T: Debug> Debug for ValueContainer<T>
sourceimpl<T> From<DeferredValue<T>> for ValueContainer<T>
impl<T> From<DeferredValue<T>> for ValueContainer<T>
sourcefn from(value: DeferredValue<T>) -> Self
fn from(value: DeferredValue<T>) -> Self
Converts to this type from the input type.
sourceimpl<T> From<Memo<T>> for ValueContainer<T>
impl<T> From<Memo<T>> for ValueContainer<T>
sourceimpl<T> From<Rc<RefCell<T>>> for ValueContainer<T>
impl<T> From<Rc<RefCell<T>>> for ValueContainer<T>
sourceimpl<T> From<Rc<T>> for ValueContainer<T>
impl<T> From<Rc<T>> for ValueContainer<T>
sourceimpl<T> From<RefContainer<T>> for ValueContainer<T>
impl<T> From<RefContainer<T>> for ValueContainer<T>
sourcefn from(value: RefContainer<T>) -> Self
fn from(value: RefContainer<T>) -> Self
Converts to this type from the input type.
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
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