[−][src]Struct cranelift_codegen_meta::isa::riscv::recipes::RecipeGroup
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
impl !RefUnwindSafe for RecipeGroup
impl !Send for RecipeGroup
impl !Sync for RecipeGroup
impl Unpin for RecipeGroup
impl !UnwindSafe for RecipeGroup
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,