pub struct Registry { /* private fields */ }Expand description
Explicit registry of target modules, assembled by the build host.
Implementations§
Source§impl Registry
impl Registry
pub fn new() -> Self
pub fn register(&mut self, target: Box<dyn Target>)
pub fn descriptors(&self) -> Vec<TargetDescriptor>
Sourcepub fn resolve(&self, config: &TargetConfig) -> Result<&dyn Target, Diagnostic>
pub fn resolve(&self, config: &TargetConfig) -> Result<&dyn Target, Diagnostic>
Resolve the target for a configuration. A missing default backend is an error; there is never a silent switch to another UI technology.
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Registry
impl !UnwindSafe for Registry
impl Freeze for Registry
impl Send for Registry
impl Sync for Registry
impl Unpin for Registry
impl UnsafeUnpin for Registry
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