1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
use std::{
cmp::{Eq, Ord, Ordering, PartialEq, PartialOrd},
fmt::{Debug, Display},
hash::{Hash, Hasher},
ops::Deref,
};
use serde::{Serialize, Serializer};
use crate::{
traits::{IntoReprC, IntoReprRust},
std_types::{
RBoxError, RCmpOrdering, RErr, ROk, ROption,RResult, RString,RStr,
RSlice, RSliceMut
},
};
#[macro_use]
mod enabled_traits_macro;
pub(crate)mod c_functions;
pub mod interfaces;
pub mod trait_objects;
pub(crate) mod type_info;
pub(crate) mod iterator;
pub(crate) mod dyn_trait;
#[macro_use]
pub(crate) mod vtable;
pub(crate) mod traits;
pub use self::{
dyn_trait::{
DynTrait,
DynTraitBound,
GetVWInterface,
UneraseError,
},
vtable::{ InterfaceBound,VTableDT },
traits::{
ImplType, InterfaceType,
DeserializeDyn,
SerializeImplType, SerializeProxyType,
IteratorItem,IteratorItemOrDefault,
},
type_info::TypeInfo,
};
#[doc(hidden)]
pub use self::vtable::GetVtable;
#[doc(no_inline)]
pub use crate::type_level::unerasability::{TU_Unerasable,TU_Opaque};
#[doc(hidden)]
#[repr(u8)]
#[derive(Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Hash, StableAbi)]
pub enum FormattingMode {
Default_,
Alternate,
}