[−][src]Crate dync
Overview
This crate aims to fill the gap in Rust's dynamic traits system by exposing the control over dynamic
virtual function tables to the user in a safe API. Below is a list of capabilities unlocked by
dync
.
- Create homogeneous untyped
Vec
s that store a single virtual function table for all contained elements. This functionality is enabled by thetraits
feature. For more details seevec_dyn
.
Re-exports
pub use downcast_rs as downcast; |
pub use index_slice::*; |
Modules
index_slice | |
macros | Utility macros for code generation. |
traits | This module defines the function pointers for supported traits from the standard library. |
Macros
call_numeric_buffer_fn | Applies |
eval_align | |
from_dyn | Convert a given container with a dynamic vtable to a concrete type. |
into_dyn | Convert a given container type (e.g. |
Structs
CopyValueMut | A generic mutable |
CopyValueRef | A generic value reference to a |
Meta | Defines a meta struct containing information about a type but not the type itself. |
Slice | |
SliceCopy | |
SliceCopyMut | |
SliceMut | |
Value | |
ValueMut | A generic mutable value reference into a buffer. |
ValueRef | A generic value reference into a buffer. |
VecCopy | Buffer of untyped |
VecDyn |
Enums
Error | |
VTableRef | A VTable reference type. |
Traits
CopyElem | |
DropAsAligned | |
Elem | |
GetBytesMut | |
GetBytesRef | |
VTable |
|
Type Definitions
BoxValue | |
SliceDrop | |
SliceMutDrop | |
SmallValue | |
VecDrop |
Attribute Macros
dync_mod | |
dync_trait |