Expand description
Contains many ffi-safe equivalents of standard library types. The vast majority of them can be converted to and from std equivalents.
For ffi-safe equivalents/wrappers of types outside the standard library go to the external_types module
Re-exports§
pub use self::option::RNone;pub use self::option::RSome;pub use self::result::RErr;pub use self::result::ROk;
Modules§
- cow
- Contains the ffi-safe equivalent of
std::borrow::Cow, and related items. - map
- Contains the ffi-safe equivalent of
std::collections::HashMap, and related items. - string
- Contains an ffi-safe equivalent of
std::string::String. - sync
- Some types from the
std::syncmodule have ffi-safe equivalents inabi_stable::external_types. - utypeid
- An ffi-safe equivalent of
std::any::TypeId. - vec
- Contains an ffi-safe equivalent of
Vec<T>.
Structs§
- RArc
- Ffi-safe version of
std::sync::Arc - RBox
- Ffi-safe equivalent of
std::box::Box. - RBox
Error_ - Ffi-safe version of
Box<dyn std::error::Error + 'static>whoseSend + Syncness is determined by theMtype parameter. - RDuration
- Ffi-safe equivalent of
std::time::Duration. - RHash
Map - An ffi-safe hashmap, which wraps
std::collections::HashMap<K, V, S>, only requiring theK: Eq + Hashbounds when constructing it. - RIoError
- Ffi safe equivalent to
std::io::Error. - RIoError
Kind - Ffi safe equivalent to
std::io::ErrorKind. - RSlice
- Ffi-safe equivalent of
&'a [T] - RSlice
Mut - Ffi-safe equivalent of
&'a mut [T] - RStr
- Ffi-safe equivalent of
&'a str - RString
- Ffi-safe equivalent of
std::string::String. - RVec
- Ffi-safe equivalent of
std::vec::Vec. - Tuple1
- An ffi safe 1 element tuple.
- Tuple2
- An ffi safe 2 element tuple.
- Tuple3
- An ffi safe 3 element tuple.
- Tuple4
- An ffi safe 4 element tuple.
- UTypeId
- An ffi-safe equivalent of
std::any::TypeIdthat can compare types across dynamic libraries.
Enums§
- RCmp
Ordering - Ffi-safe equivalent of
std::cmp::Ordering. - RCow
- Ffi-safe equivalent of
std::borrow::Cow. - ROption
- Ffi-safe equivalent of the
std::option::Optiontype. - RResult
- Ffi-safe equivalent of
Result<T, E>. - RSeek
From - Ffi-safe equivalent of
std::io::SeekFrom.
Type Aliases§
- RBox
Error - Ffi safe equivalent to
Box<dyn std::error::Error + Send + Sync>. - RCow
Slice - Ffi-safe equivalent of
Cow<'a, [T]>, either anRSliceorRVec. - RCowStr
- Ffi-safe equivalent of
Cow<'a, str>, either anRStrorRString. - RCowVal
- Ffi-safe equivalent of
Cow<'a, T>, either a&TorT. - SendR
BoxError - Ffi safe equivalent to
Box<dyn std::error::Error + Send>. - UnsyncR
BoxError - Ffi safe equivalent to
Box<dyn std::error::Error>.