pub struct CubeRegistry { /* private fields */ }Implementations§
Source§impl CubeRegistry
impl CubeRegistry
pub fn from_cubes(cubes: Vec<CubeDefinition>) -> Self
pub fn get(&self, name: &str) -> Option<&CubeDefinition>
pub fn cubes(&self) -> impl Iterator<Item = &CubeDefinition>
pub fn cube_names(&self) -> Vec<&str>
Trait Implementations§
Source§impl Clone for CubeRegistry
impl Clone for CubeRegistry
Source§fn clone(&self) -> CubeRegistry
fn clone(&self) -> CubeRegistry
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for CubeRegistry
impl !RefUnwindSafe for CubeRegistry
impl Send for CubeRegistry
impl Sync for CubeRegistry
impl Unpin for CubeRegistry
impl UnsafeUnpin for CubeRegistry
impl !UnwindSafe for CubeRegistry
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more