Module abi_stable::std_types::cow
source · Expand description
Contains the ffi-safe equivalent of std::borrow::Cow
, and related items.
Structs§
- A helper type, to deserialize a
RCowStr<'a>
which borrows from the deserializer. - A helper type, to deserialize an
RCow<'a, [u8]>
which borrows from the deserializer.
Enums§
- Ffi-safe equivalent of
std::borrow::Cow
.
Traits§
- For making a
Cow<'a, Self>
convertible into anRCow
.
Functions§
- Deserializes an
RCow<'a, [u8]>
that borrows the slice from the deserializer whenever possible. - Deserializes an
RCowStr<'a>
that borrows the string from the deserializer whenever possible.
Type Aliases§
- Ffi-safe equivalent of
Cow<'a, T>
, either a&T
orT
.