[][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.

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

arc

Contains the ffi-safe equivalent of std::sync::Arc.

boxed

Contains the ffi-safe equivalent of std::boxed::Box.

cmp_ordering

Contains the ffi-safe equivalent of std::cmp::Ordering.

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.

option

Contains the ffi-safe equivalent of std::option::Option.

range

Contains the ffi-safe equivalent of std::ops::Range* types.

result

Contains the ffi-safe equivalent of std::result::Result.

slice_mut

Contains the ffi-safe equivalent of &'a mut [T].

slices

Contains the ffi-safe equivalent of &'a [T].

static_slice

Contains an ffi-safe equivalent of &'static [T],constructible in constants.

static_str

Contains an ffi-safe equivalent of &'static str,constructible in constants.

std_error

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

std_io

Ffi-safe equivalents of std::io::{ErrorKind,Error,SeekFrom}.

str

Contains an ffi-safe equivalent of &'a str.

string

Contains an ffi-safe equivalent of std::string::String.

sync

Some types from the std::sync module have ffi-safe equivalents in abi_stable::external_types.

time

Contains ffi-safe equivalent of std::time::Duration.

tuple

Contains ffi-safe equivalents of tuples up to 4 elements.

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 Box<_>.

RDuration

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

RHashMap

An ffi-safe hashmap,which wraps std::collections::HashMap<K,V,S>, only requiring the K:Eq+Hash bounds when constructing it.

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.

Tuple1

An ffi safe 1 element tuple.

Tuple2

An ffi safe 1 element tuple.

Tuple3

An ffi safe 1 element tuple.

Tuple4

An ffi safe 1 element tuple.

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>.

RSeekFrom

Ffi-safe equivalent of std::io::SeekFrom.

Type Definitions

RBoxError

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

SendRBoxError

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

UnsyncRBoxError

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