[−][src]Struct dync::Value
Methods
impl<V> Value<Box<[u8]>, V>[src]
pub fn new<T: Any + DropBytes>(value: T) -> Value<Box<[u8]>, V> where
V: VTable<T>, [src]
V: VTable<T>,
pub fn as_ref(&self) -> ValueRef<V>[src]
pub fn as_mut(&mut self) -> ValueMut<V>[src]
impl<B: GetBytes, V> Value<B, V>[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.
impl<V> Value<Box<[u8]>, V>[src]
pub fn downcast<T: 'static>(self) -> Option<Box<T>>[src]
Downcast this value reference into a boxed T type. Return None if the downcast fails.
impl<V> Value<usize, V>[src]
pub fn downcast<T: 'static>(self) -> Option<T>[src]
Downcast this value reference into a boxed T type. Return None if the downcast fails.
Trait Implementations
impl<V: HasClone> Clone for Value<Box<[u8]>, V>[src]
impl<B: GetBytesMut, V: HasDebug> Debug for Value<B, V>[src]
impl<B: GetBytesMut, V> Drop for Value<B, V>[src]
impl<B: GetBytesMut, V: HasPartialEq> Eq for Value<B, V>[src]
impl<B: GetBytesMut, V: HasHash> Hash for Value<B, V>[src]
fn hash<H: Hasher>(&self, state: &mut H)[src]
fn hash_slice<H>(data: &[Self], state: &mut H) where
H: Hasher, 1.3.0[src]
H: Hasher,
impl<B: GetBytesMut, V: HasPartialEq> PartialEq<Value<B, V>> for Value<B, V>[src]
Auto Trait Implementations
impl<B, V> RefUnwindSafe for Value<B, V> where
B: RefUnwindSafe,
V: RefUnwindSafe,
B: RefUnwindSafe,
V: RefUnwindSafe,
impl<B, V> Send for Value<B, V> where
B: Send,
V: Send + Sync,
B: Send,
V: Send + Sync,
impl<B, V> Sync for Value<B, V> where
B: Sync,
V: Send + Sync,
B: Sync,
V: Send + Sync,
impl<B, V> Unpin for Value<B, V> where
B: Unpin,
B: Unpin,
impl<B, V> UnwindSafe for Value<B, V> where
B: UnwindSafe,
V: RefUnwindSafe,
B: UnwindSafe,
V: RefUnwindSafe,
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> 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>,