pub struct RecipeType<D: RecipeMatches<I> + DowncastType, I: RecipeInput> {
entry: RecipeTypeEntry,
_marker: PhantomData<fn(&D, &I)>,
}Expand description
Typed handle for an operational recipe type.
Fields§
§entry: RecipeTypeEntry§_marker: PhantomData<fn(&D, &I)>Implementations§
Source§impl<D: RecipeMatches<I> + DowncastType, I: RecipeInput> RecipeType<D, I>
impl<D: RecipeMatches<I> + DowncastType, I: RecipeInput> RecipeType<D, I>
pub const fn new(key: Identifier) -> Self
pub const fn entry(&'static self) -> RecipeTypeEntryRef
pub const fn key(&self) -> &Identifier
Trait Implementations§
Source§impl<D: RecipeMatches<I> + DowncastType, I: RecipeInput> Debug for RecipeType<D, I>
impl<D: RecipeMatches<I> + DowncastType, I: RecipeInput> Debug for RecipeType<D, I>
Auto Trait Implementations§
impl<D, I> Freeze for RecipeType<D, I>
impl<D, I> RefUnwindSafe for RecipeType<D, I>
impl<D, I> Send for RecipeType<D, I>
impl<D, I> Sync for RecipeType<D, I>
impl<D, I> Unpin for RecipeType<D, I>
impl<D, I> UnsafeUnpin for RecipeType<D, I>
impl<D, I> UnwindSafe for RecipeType<D, I>
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreWraps this value in an
Arc<SyncMutex<>>