pub struct TargetRegistry { /* private fields */ }Implementations§
Source§impl TargetRegistry
impl TargetRegistry
pub fn discover( built_in_names: &BTreeSet<String>, ) -> Result<Self, RendererError>
pub fn discover_with_packs( packs: &[ThemePack], built_in_names: &BTreeSet<String>, ) -> Result<Self, RendererError>
pub fn from_dir( path: &Path, user_config: bool, built_in_names: &BTreeSet<String>, ) -> Result<Self, RendererError>
pub fn from_theme_packs( packs: &[ThemePack], built_in_names: &BTreeSet<String>, ) -> Result<Self, RendererError>
pub fn get(&self, name: &str) -> Option<&CompiledTarget>
pub fn list_targets(&self) -> &[ListedTarget]
Trait Implementations§
Source§impl Debug for TargetRegistry
impl Debug for TargetRegistry
Auto Trait Implementations§
impl Freeze for TargetRegistry
impl RefUnwindSafe for TargetRegistry
impl Send for TargetRegistry
impl Sync for TargetRegistry
impl Unpin for TargetRegistry
impl UnsafeUnpin for TargetRegistry
impl UnwindSafe for TargetRegistry
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