[][src]Module abi_stable::std_types

Contains many ffi-safe equivalents of standard library types. The vast majority of them can be converted to and from std equivalents.

Re-exports

pub use self::option::RNone;
pub use self::option::RSome;
pub use self::result::RErr;
pub use self::result::ROk;

Modules

arc
boxed
cmp_ordering
cow
option
range
result
slice_mut
slices
static_slice
static_str
std_error

Ffi-safe version of Box<::std::error::Error+Sync+Send+'static> and Box<::std::error::Error+'static>

std_io
str
string
time
tuple
utypeid

An ffi-safe equivalent of ::std::any::TypeId.

vec

Structs

RArc

Ffi-safe version of ::std::sync::Arc<_>

RBox

Ffi-safe equivalent of Box<_>.

RDuration

Ffi-safe equivalent of ::std::time::Duration .

RIoError

Ffi safe equivalent to ::std::io::Error.

RIoErrorKind

Ffi safe equivalent to ::std::io::ErrorKind.

RSlice

Ffi-safe equivalent of &'a [T]

RSliceMut

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.

StaticSlice

Wrapper type around &'static [T] as a workaround for the non-stable-constness of <[T]>::len.

StaticStr

Wrapper type around &'static str as a workaround for the non-stable-constness of str::len.

Tuple2

Ffi-safe equivalent of tuples.

Tuple3

Ffi-safe equivalent of tuples.

Tuple4

Ffi-safe equivalent of tuples.

UTypeId

A TypeId that can compare types across dynamic libraries.

Enums

RCmpOrdering

Ffi-safe equivalent of ::std::cmp::Ordering.

RCow

Ffi-safe equivalent of ::std::borrow::Cow.

ROption

Ffi-safe equivalent of the Option<_> type.

RResult

Ffi-safe equivalent of Result<T,E>.

Type Definitions

RBoxError

Ffi safe equivalent to Box<::std::error::Error+Send+Sync>.

UnsyncRBoxError

Ffi safe equivalent to Box<::std::error::Error>.