Skip to main content

IndexDomain

Trait IndexDomain 

Source
pub trait IndexDomain: 'static + Clone {
    type Owned: 'static + Clone + Eq + Hash + OwnedIndex;
    type Index<'a>: Clone + Eq + Hash
       where Self: 'a;

    // Required methods
    fn to_owned(index: &Self::Index<'_>) -> Self::Owned;
    fn from_owned(owned: &Self::Owned) -> Self::Index<'_>;
}

Required Associated Types§

Source

type Owned: 'static + Clone + Eq + Hash + OwnedIndex

Source

type Index<'a>: Clone + Eq + Hash where Self: 'a

Required Methods§

Source

fn to_owned(index: &Self::Index<'_>) -> Self::Owned

Source

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

Dyn Compatibility§

This trait is not dyn compatible.

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

Implementations on Foreign Types§

Source§

impl IndexDomain for EdgeIndex

Source§

type Index<'a> = &'a u32

Source§

type Owned = u32

Source§

fn to_owned(index: &Self::Index<'_>) -> Self::Owned

Source§

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

Source§

impl IndexDomain for GraphRecordValue

Source§

type Index<'a> = GraphRecordValue

Source§

type Owned = GraphRecordValue

Source§

fn to_owned(index: &Self::Index<'_>) -> Self::Owned

Source§

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

Source§

impl IndexDomain for NodeIndex

Source§

type Index<'a> = &'a GraphRecordAttribute

Source§

type Owned = GraphRecordAttribute

Source§

fn to_owned(index: &Self::Index<'_>) -> Self::Owned

Source§

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

Source§

impl IndexDomain for bool

Source§

type Index<'a> = bool

Source§

type Owned = bool

Source§

fn to_owned(index: &Self::Index<'_>) -> Self::Owned

Source§

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

Implementors§