pub struct TypedRecipeRef<D: RecipeMatches<I> + DowncastType, I: RecipeInput> {
key: &'static Identifier,
data: &'static D,
recipe_type: &'static RecipeType<D, I>,
}Expand description
Recipe reference with its concrete data and input types restored.
Fields§
§key: &'static Identifier§data: &'static D§recipe_type: &'static RecipeType<D, I>Implementations§
Source§impl<D: RecipeMatches<I> + DowncastType, I: RecipeInput> TypedRecipeRef<D, I>
impl<D: RecipeMatches<I> + DowncastType, I: RecipeInput> TypedRecipeRef<D, I>
pub const fn key(self) -> &'static Identifier
pub const fn data(self) -> &'static D
pub const fn recipe_type(self) -> &'static RecipeType<D, I>
Trait Implementations§
Source§impl<D: RecipeMatches<I> + DowncastType, I: RecipeInput> Clone for TypedRecipeRef<D, I>
impl<D: RecipeMatches<I> + DowncastType, I: RecipeInput> Clone for TypedRecipeRef<D, I>
impl<D: RecipeMatches<I> + DowncastType, I: RecipeInput> Copy for TypedRecipeRef<D, I>
Source§impl<D: RecipeMatches<I> + DowncastType, I: RecipeInput> Debug for TypedRecipeRef<D, I>
impl<D: RecipeMatches<I> + DowncastType, I: RecipeInput> Debug for TypedRecipeRef<D, I>
Auto Trait Implementations§
impl<D, I> Freeze for TypedRecipeRef<D, I>
impl<D, I> RefUnwindSafe for TypedRecipeRef<D, I>where
D: RefUnwindSafe,
impl<D, I> Send for TypedRecipeRef<D, I>
impl<D, I> Sync for TypedRecipeRef<D, I>
impl<D, I> Unpin for TypedRecipeRef<D, I>
impl<D, I> UnsafeUnpin for TypedRecipeRef<D, I>
impl<D, I> UnwindSafe for TypedRecipeRef<D, I>where
D: RefUnwindSafe,
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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<>>