Enum pliantdb_core::schema::view::SerializableValue [−][src]
Represents either an owned value or a borrowed value. Functionally
equivalent to std::borrow::Cow
except this type doesn’t require the
wrapped type to implement Clone
.
Variants
an owned value
Borrowed(&'a T)
a borrowed value
Trait Implementations
impl<'a, T> AsRef<T> for SerializableValue<'a, T> where
T: Serialize,
[src]
T: Serialize,
impl<'a, T> From<&'a T> for SerializableValue<'a, T> where
T: Serialize,
[src]
T: Serialize,
fn from(other: &'a T) -> SerializableValue<'a, T>
[src]
Auto Trait Implementations
impl<'a, T> RefUnwindSafe for SerializableValue<'a, T> where
T: RefUnwindSafe,
T: RefUnwindSafe,
impl<'a, T> Send for SerializableValue<'a, T> where
T: Send + Sync,
T: Send + Sync,
impl<'a, T> Sync for SerializableValue<'a, T> where
T: Sync,
T: Sync,
impl<'a, T> Unpin for SerializableValue<'a, T> where
T: Unpin,
T: Unpin,
impl<'a, T> UnwindSafe for SerializableValue<'a, T> where
T: RefUnwindSafe + UnwindSafe,
T: RefUnwindSafe + UnwindSafe,
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Same<T> for T
type Output = T
Should always be Self
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,