[−][src]Struct dync::CopyValueRef
A generic value reference to a Copy type.
Methods
impl<'a> CopyValueRef<'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 T) -> CopyValueRef<'a>[src]
Create a new CopyValueRef from a typed reference.
pub fn downcast<T: Elem>(self) -> Option<&'a T>[src]
Downcast this value reference into a borrowed T type. Return None if the downcast fails.
Trait Implementations
impl<'a> Clone for CopyValueRef<'a>[src]
fn clone(&self) -> CopyValueRef<'a>[src]
fn clone_from(&mut self, source: &Self)1.0.0[src]
impl<'a> Copy for CopyValueRef<'a>[src]
impl<'a> Debug for CopyValueRef<'a>[src]
impl<'a> Extend<CopyValueRef<'a>> for VecCopy[src]
fn extend<T: IntoIterator<Item = CopyValueRef<'a>>>(&mut self, iter: T)[src]
impl<'a> From<CopyValueMut<'a>> for CopyValueRef<'a>[src]
fn from(v: CopyValueMut<'a>) -> CopyValueRef<'a>[src]
impl<'a> FromIterator<CopyValueRef<'a>> for VecCopy[src]
fn from_iter<T: IntoIterator<Item = CopyValueRef<'a>>>(iter: T) -> Self[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for CopyValueRef<'a>
impl<'a> Send for CopyValueRef<'a>
impl<'a> Sync for CopyValueRef<'a>
impl<'a> Unpin for CopyValueRef<'a>
impl<'a> UnwindSafe for CopyValueRef<'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> Elem for T where
T: Any + Copy, [src]
T: Any + Copy,
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
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>,