pub struct OutputRegistry { /* private fields */ }Implementations§
Source§impl OutputRegistry
impl OutputRegistry
pub fn discover() -> Result<Self, RendererError>
pub fn discover_with_packs(packs: &[ThemePack]) -> Result<Self, RendererError>
pub fn resolve(&self, name: &str) -> Option<&dyn ArtifactGenerator>
pub fn list_targets(&self) -> Vec<ListedTarget>
pub fn resolve_preferred_template(&self, target: &str) -> Option<String>
pub fn resolve_chroma_strategy(&self, target: &str) -> Option<ChromaStrategy>
pub fn generate( &self, requested: &[String], tokens: &SemanticTokens, ctx: &GenerationContext, ) -> Result<Vec<GeneratedArtifact>, RendererError>
pub fn validate_path_target(&self, path: &Path) -> Result<(), RendererError>
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for OutputRegistry
impl !RefUnwindSafe for OutputRegistry
impl !UnwindSafe for OutputRegistry
impl Send for OutputRegistry
impl Sync for OutputRegistry
impl Unpin for OutputRegistry
impl UnsafeUnpin for OutputRegistry
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