[][src]Struct cranelift_codegen_meta::isa::riscv::recipes::RecipeGroup

pub(crate) struct RecipeGroup {
    pub recipes: PrimaryMap<EncodingRecipeNumber, EncodingRecipe>,
    name_to_recipe: HashMap<String, EncodingRecipeNumber>,
}

An helper to create recipes and use them when defining the RISCV encodings.

Fields

recipes: PrimaryMap<EncodingRecipeNumber, EncodingRecipe>

The actualy list of recipes explicitly created in this file.

name_to_recipe: HashMap<String, EncodingRecipeNumber>

Provides fast lookup from a name to an encoding recipe.

Methods

impl RecipeGroup[src]

fn new() -> Self[src]

fn push(&mut self, builder: EncodingRecipeBuilder)[src]

pub fn by_name(&self, name: &str) -> EncodingRecipeNumber[src]

pub fn collect(self) -> PrimaryMap<EncodingRecipeNumber, EncodingRecipe>[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.