pub struct ValueWrapper<X: RudaPrimitive> { /* private fields */ }Expand description
Wrap the item to be able to modify it as a field
Implementations§
Source§impl<X: RudaPrimitive> ValueWrapper<X>
impl<X: RudaPrimitive> ValueWrapper<X>
pub fn unwrap(&self) -> X
pub fn __expand_unwrap( scope: &mut Scope, this: <Self as RudaType>::ExpandType, ) -> <X as RudaType>::ExpandType
Trait Implementations§
Source§impl<X: RudaPrimitive> RudaType for ValueWrapper<X>
impl<X: RudaPrimitive> RudaType for ValueWrapper<X>
type ExpandType = ValueWrapperExpand<X>
fn __expand_inactive_value(scope: &mut Scope) -> Self::ExpandType
fn __expand_absent_reference( _scope: &mut Scope, _writable: bool, ) -> Self::ExpandType
Auto Trait Implementations§
impl<X> Freeze for ValueWrapper<X>where
RuntimeCell<X>: Freeze,
impl<X> RefUnwindSafe for ValueWrapper<X>where
RuntimeCell<X>: RefUnwindSafe,
impl<X> Send for ValueWrapper<X>where
RuntimeCell<X>: Send,
impl<X> Sync for ValueWrapper<X>where
RuntimeCell<X>: Sync,
impl<X> Unpin for ValueWrapper<X>where
RuntimeCell<X>: Unpin,
impl<X> UnsafeUnpin for ValueWrapper<X>where
RuntimeCell<X>: UnsafeUnpin,
impl<X> UnwindSafe for ValueWrapper<X>where
RuntimeCell<X>: UnwindSafe,
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