Skip to main content

RelationStore

Trait RelationStore 

Source
pub trait RelationStore: Send + Sync {
    // Required methods
    fn get(&self, name: &str) -> Option<&GpuBuffer>;
    fn put(&mut self, name: &str, buffer: GpuBuffer);
    fn contains(&self, name: &str) -> bool;
}
Expand description

Trait for relation storage backends

Required Methods§

Source

fn get(&self, name: &str) -> Option<&GpuBuffer>

Get a relation by ID

Source

fn put(&mut self, name: &str, buffer: GpuBuffer)

Store a relation

Source

fn contains(&self, name: &str) -> bool

Check if relation exists

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§