Enum pliantdb_core::schema::view::SerializableValue[][src]

pub enum SerializableValue<'a, T: Serialize> {
    Owned(T),
    Borrowed(&'a T),
}
Expand description

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

Owned(T)

an owned value

Borrowed(&'a T)

a borrowed value

Trait Implementations

Performs the conversion.

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.