[−][src]Struct dync::CopyValueMut
A generic mutable Copy value reference.
Methods
impl<'a> CopyValueMut<'a>[src]
pub fn size(&self) -> usize[src]
Get the size of the value pointed-to by this reference.
pub fn value_type_id(&self) -> TypeId[src]
Get the TypeId of the referenced value.
pub fn is<T: 'static>(&self) -> bool[src]
Returns true if this referenced value's type is the same as T.
pub fn new<T: Elem>(typed: &'a mut T) -> CopyValueMut<'a>[src]
Create a new CopyValueMut from a typed mutable reference.
pub fn copy(self, other: CopyValueRef<'a>) -> Option<Self>[src]
Copy value from other to self and return Self.
This function returns None if the values have different types.
pub fn swap(&mut self, other: &mut CopyValueMut)[src]
Swap the values between other and self.
pub fn downcast<T: Elem>(self) -> Option<&'a mut T>[src]
Downcast this value reference into a borrowed T type. Return None if the downcast fails.
Trait Implementations
impl<'a> Debug for CopyValueMut<'a>[src]
impl<'a> From<CopyValueMut<'a>> for CopyValueRef<'a>[src]
fn from(v: CopyValueMut<'a>) -> CopyValueRef<'a>[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for CopyValueMut<'a>
impl<'a> Send for CopyValueMut<'a>
impl<'a> Sync for CopyValueMut<'a>
impl<'a> Unpin for CopyValueMut<'a>
impl<'a> !UnwindSafe for CopyValueMut<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,