pub struct SharedSourceProvider { /* private fields */ }Expand description
A cloneable, type-erased source provider suitable for retaining with owned diagnostics.
Implementations§
pub fn new<P>(provider: Arc<P>) -> Self
pub fn from_arc( provider: Arc<dyn SourceProvider + Send + Sync + 'static>, ) -> Self
pub fn as_provider(&self) -> &(dyn SourceProvider + Send + Sync + 'static)
Trait Implementations§
Auto Trait Implementations§
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