Trait orx_priority_queue::NodeKeyRef

source ·
pub trait NodeKeyRef<'a, N, K>
where N: 'a, K: 'a,
{ // Required methods fn node(&self) -> &'a N; fn key(&self) -> &'a K; }
Expand description

Trait representing (node, key) pairs stored on priority queues.

Required Methods§

source

fn node(&self) -> &'a N

Returns a reference to the node.

source

fn key(&self) -> &'a K

Returns a reference to the key/priority of the node.

Implementations on Foreign Types§

source§

impl<'a, N, K> NodeKeyRef<'a, N, K> for &'a (N, K)
where N: 'a, K: 'a,

source§

fn node(&self) -> &'a N

source§

fn key(&self) -> &'a K

source§

impl<'a, N, K> NodeKeyRef<'a, N, K> for (&'a N, &'a K)
where N: 'a, K: 'a,

source§

fn node(&self) -> &'a N

source§

fn key(&self) -> &'a K

Implementors§