pub struct RegisteredGenerator {
pub id: GeneratorId,
pub name: String,
pub doc: String,
pub source: SourceLocation,
pub inner: Arc<dyn CandidateGenerator>,
}Expand description
Metadata + impl for a registered generator. The inner is held
behind Arc<dyn ...> so the pipeline can clone the handle
without taking ownership.
Fields§
§id: GeneratorId§name: String§doc: String§source: SourceLocation§inner: Arc<dyn CandidateGenerator>Auto Trait Implementations§
impl !RefUnwindSafe for RegisteredGenerator
impl !UnwindSafe for RegisteredGenerator
impl Freeze for RegisteredGenerator
impl Send for RegisteredGenerator
impl Sync for RegisteredGenerator
impl Unpin for RegisteredGenerator
impl UnsafeUnpin for RegisteredGenerator
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