pub enum PluginRef {
Simple(String),
Path {
crate_name: String,
plugin_name: String,
},
}Expand description
A plugin reference - either a simple name or a full path.
Error→ convention-based lookup (::facet_error)facet_miette::Diagnostic→ explicit path (::facet_miette)
Variants§
Simple(String)
Simple name like Error - uses convention ::facet_{snake_case}
Path
Explicit path like facet_miette::Diagnostic - uses the crate part directly
Implementations§
Source§impl PluginRef
impl PluginRef
Sourcepub fn crate_path(&self) -> TokenStream
pub fn crate_path(&self) -> TokenStream
Get the crate path for this plugin reference.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for PluginRef
impl RefUnwindSafe for PluginRef
impl Send for PluginRef
impl Sync for PluginRef
impl Unpin for PluginRef
impl UnwindSafe for PluginRef
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