Trait eyros::Value[][src]

pub trait Value: Clone + Hash + Debug + Send + Sync + 'static + ToBytes + CountBytes + FromBytes {
    type Id: Clone + Hash + Eq + Debug + Send + Sync + 'static;
    fn get_id(&self) -> Self::Id;
}
Expand description

Define the payload stored at a given geometry point. Value types must define an Id that uniquely identify them so they can be deleted.

Associated Types

type Id: Clone + Hash + Eq + Debug + Send + Sync + 'static[src]

Required methods

fn get_id(&self) -> Self::Id[src]

Implementations on Foreign Types

impl Value for u8[src]

type Id = u8

fn get_id(&self) -> u8[src]

impl Value for u16[src]

type Id = u16

fn get_id(&self) -> u16[src]

impl Value for u32[src]

type Id = u32

fn get_id(&self) -> u32[src]

impl Value for u64[src]

type Id = u64

fn get_id(&self) -> u64[src]

impl Value for i8[src]

type Id = i8

fn get_id(&self) -> i8[src]

impl Value for i16[src]

type Id = i16

fn get_id(&self) -> i16[src]

impl Value for i32[src]

type Id = i32

fn get_id(&self) -> i32[src]

impl Value for i64[src]

type Id = i64

fn get_id(&self) -> i64[src]

impl<T> Value for Vec<T> where
    T: Value + Clone + Eq
[src]

type Id = Vec<T>

fn get_id(&self) -> Self[src]

Implementors