Skip to main content

ValueDomain

Trait ValueDomain 

Source
pub trait ValueDomain: 'static {
    type Owned: 'static + Clone;
    type Value<'a>: 'a + Clone
       where Self: 'a;

    // Required methods
    fn into_owned(value: Self::Value<'_>) -> Self::Owned;
    fn from_owned(owned: &Self::Owned) -> Self::Value<'_>;
}

Required Associated Types§

Source

type Owned: 'static + Clone

Source

type Value<'a>: 'a + Clone where Self: 'a

Required Methods§

Source

fn into_owned(value: Self::Value<'_>) -> Self::Owned

Source

fn from_owned(owned: &Self::Owned) -> Self::Value<'_>

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§