pub trait BorrowStorable: Sized + Borrow<Self::Stored> {
    type Stored: ?Sized + Storable + ToOwned<Owned = Self>;
}
Expand description

Types that can be borrowed as a type that is Storable

Automatically implemented for:

  • Storable types whose owning type is the same Storable type (e.g. i32 implements BorrowStorable<Stored=i32>)
  • Vec<T>, where T is Storable and the owning type is Vec<T>, (e.g. Vec<u8> implements BorrowStorable<Stored=[u8]>)
  • String (with BorrowStorable::Stored being str)

Required Associated Types

Borrowed Storable type

Implementations on Foreign Types

Implementors