Skip to main content

KeyedObject

Trait KeyedObject 

Source
pub trait KeyedObject {
    // Required methods
    fn key(&self) -> &Key;
    fn key_mut(&mut self) -> &mut Key;
    fn set_key(&mut self, key: Key);
}
Expand description

Trait for types that have a key identity in the Plasma object system.

Corresponds to hsKeyedObject in C++.

Required Methods§

Source

fn key(&self) -> &Key

Get this object’s key.

Source

fn key_mut(&mut self) -> &mut Key

Get a mutable reference to this object’s key.

Source

fn set_key(&mut self, key: Key)

Set this object’s key.

Implementors§