pub struct Value(/* private fields */);Expand description
A handle of Koopa IR value.
You can fetch ValueData from DataFlowGraph in FunctionData
by using this handle.
Implementations§
Trait Implementations§
impl Copy for Value
impl Eq for Value
Source§impl Map<Value, InstNode> for InstMap
impl Map<Value, InstNode> for InstMap
Source§fn clear(&mut self)
fn clear(&mut self)
Clears the map, removing all key-value pairs.
Keeps the allocated memory for reuse.
Source§fn get<Q>(&self, k: &Q) -> Option<&InstNode>
fn get<Q>(&self, k: &Q) -> Option<&InstNode>
Returns a reference to the value corresponding to the key. Read more
Source§fn get_mut<Q>(&mut self, k: &Q) -> Option<&mut InstNode>
fn get_mut<Q>(&mut self, k: &Q) -> Option<&mut InstNode>
Returns a mutable reference to the value corresponding to the key. Read more
Source§fn insert<T>(&mut self, k: Value, v: T) -> Result<(), (Value, T)>
fn insert<T>(&mut self, k: Value, v: T) -> Result<(), (Value, T)>
Inserts a key-value pair into the map. Read more
Source§fn remove_entry<Q>(&mut self, k: &Q) -> Option<(Value, InstNode)>
fn remove_entry<Q>(&mut self, k: &Q) -> Option<(Value, InstNode)>
Removes a key from the map, returning the stored key and value if the
key was previously in the map. Read more
impl StructuralPartialEq for Value
Auto Trait Implementations§
impl Freeze for Value
impl RefUnwindSafe for Value
impl Send for Value
impl Sync for Value
impl Unpin for Value
impl UnsafeUnpin for Value
impl UnwindSafe for Value
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