Trait mmtkvdb::storable::BorrowStorable
source · [−]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 sameStorable
type (e.g.i32
implementsBorrowStorable<Stored=i32>
)Vec<T>
, whereT
isStorable
and the owning type isVec<T>
, (e.g.Vec<u8>
implementsBorrowStorable<Stored=[u8]>
)String
(withBorrowStorable::Stored
beingstr
)