pub struct SourceRegistry { /* private fields */ }Implementations§
Source§impl SourceRegistry
impl SourceRegistry
pub fn new() -> Self
pub fn validate_manifest( manifest: &SourcePrimitiveManifest, ) -> Result<(), SourceValidationError>
pub fn register( &mut self, primitive: Box<dyn SourcePrimitive>, ) -> Result<(), SourceValidationError>
pub fn get(&self, id: &str) -> Option<&dyn SourcePrimitive>
pub fn keys(&self) -> Vec<(String, String)>
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for SourceRegistry
impl !Send for SourceRegistry
impl !Sync for SourceRegistry
impl !UnwindSafe for SourceRegistry
impl Freeze for SourceRegistry
impl Unpin for SourceRegistry
impl UnsafeUnpin for SourceRegistry
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