Struct dynamic::Described
[−]
[src]
pub struct Described<T: ?Sized> { pub data: T, // some fields omitted }
A value T paired with its type descriptor.
Can be converted to a Dynamic
value.
Fields
data: T
The described data.
Methods
impl<T: Any> Described<T>
[src]
fn new(val: T) -> Described<T>
Create a new Described instance that can be converted to a Dynamic.
fn id(&self) -> TypeId
Read the type id for this value.
Trait Implementations
impl<T: Copy + ?Sized> Copy for Described<T>
[src]
impl<T: Clone + ?Sized> Clone for Described<T>
[src]
fn clone(&self) -> Described<T>
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more