pub struct Serialized<T>(/* private fields */);
Expand description
Allows using any serializable type as a member of the index
This implementation is super simplistic, and will not optimize for best performance. If you want something fancy, you are very likely to want to implement your own serialization.
Implementations§
Trait Implementations§
Source§impl<T> Clone for Serialized<T>
impl<T> Clone for Serialized<T>
Source§impl<T: Default> Default for Serialized<T>
impl<T: Default> Default for Serialized<T>
Source§fn default() -> Serialized<T>
fn default() -> Serialized<T>
Returns the “default value” for a type. Read more
Source§impl<T> From<T> for Serialized<T>
impl<T> From<T> for Serialized<T>
Auto Trait Implementations§
impl<T> Freeze for Serialized<T>
impl<T> !RefUnwindSafe for Serialized<T>
impl<T> Send for Serialized<T>
impl<T> Sync for Serialized<T>
impl<T> Unpin for Serialized<T>
impl<T> !UnwindSafe for Serialized<T>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more