pub struct NullRegistry;Expand description
A registry with only the null datamodel.
Trait Implementations§
Source§impl Clone for NullRegistry
impl Clone for NullRegistry
impl Copy for NullRegistry
Source§impl DatamodelRegistry for NullRegistry
impl DatamodelRegistry for NullRegistry
Source§fn create(&self, name: &str) -> Option<Box<dyn Datamodel>>
fn create(&self, name: &str) -> Option<Box<dyn Datamodel>>
A fresh datamodel instance for
name, or None when it is not registered.Source§fn create_for(
&self,
chart: &Chart,
) -> Option<Result<Box<dyn Datamodel>, Vec<String>>>
fn create_for( &self, chart: &Chart, ) -> Option<Result<Box<dyn Datamodel>, Vec<String>>>
A fresh datamodel instance for
chart, prepared from the whole chart: None when the
chart’s datamodel is not registered, and Some(Err(problems)) when the datamodel
refuses to instantiate the chart (a statically checked datamodel refuses a chart with
type errors). The default creates the datamodel by name and refuses nothing. Read moreSource§impl Debug for NullRegistry
impl Debug for NullRegistry
Auto Trait Implementations§
impl Forget for NullRegistry
impl Freeze for NullRegistry
impl Move for NullRegistry
impl RefUnwindSafe for NullRegistry
impl Send for NullRegistry
impl Sync for NullRegistry
impl Unpin for NullRegistry
impl UnsafeUnpin for NullRegistry
impl UnwindSafe for NullRegistry
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