Struct debris_llir::opt::function_parameters::FunctionParameters
source · pub struct FunctionParameters {
parameters: FxHashMap<BlockId, FxHashMap<ItemId, FunctionParameter>>,
}
Expand description
Stores how functions use variables as parameters.
Fields§
§parameters: FxHashMap<BlockId, FxHashMap<ItemId, FunctionParameter>>
Implementations§
source§impl FunctionParameters
impl FunctionParameters
pub fn dependencies_for( &self, variable: ItemId ) -> impl Iterator<Item = (BlockId, FunctionParameter)> + '_
pub fn is_dependency(&self, variable: ItemId) -> bool
pub fn get(&mut self, function: BlockId, id: ItemId) -> FunctionParameter
pub fn get_function_parameters( &self, function: BlockId ) -> Option<&FxHashMap<ItemId, FunctionParameter>>
pub fn set_read(&mut self, function: BlockId, id: ItemId)
pub fn set_write(&mut self, function: BlockId, id: ItemId)
pub fn clear(&mut self)
Trait Implementations§
source§impl Debug for FunctionParameters
impl Debug for FunctionParameters
source§impl Default for FunctionParameters
impl Default for FunctionParameters
source§fn default() -> FunctionParameters
fn default() -> FunctionParameters
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl RefUnwindSafe for FunctionParameters
impl Send for FunctionParameters
impl Sync for FunctionParameters
impl Unpin for FunctionParameters
impl UnwindSafe for FunctionParameters
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