[−][src]Enum llhd::ir::ModUnitData
Internal table storage for units in a module.
Variants
Function(Function)
The unit is a function.
Process(Process)
The unit is a process.
Entity(Entity)
The unit is an entity.
Declare
The unit is a declaration of an external unit.
Fields of Declare
Methods
impl ModUnitData
[src]
pub fn get_function(&self) -> Option<&Function>
[src]
If this unit is a function, return it. Otherwise return None
.
pub fn get_function_mut(&mut self) -> Option<&mut Function>
[src]
If this unit is a function, return it. Otherwise return None
.
pub fn get_process(&self) -> Option<&Process>
[src]
If this unit is a process, return it. Otherwise return None
.
pub fn get_process_mut(&mut self) -> Option<&mut Process>
[src]
If this unit is a process, return it. Otherwise return None
.
pub fn get_entity(&self) -> Option<&Entity>
[src]
If this unit is an entity, return it. Otherwise return None
.
pub fn get_entity_mut(&mut self) -> Option<&mut Entity>
[src]
If this unit is an entity, return it. Otherwise return None
.
pub fn get_declaration(&self) -> Option<(&UnitName, &Signature)>
[src]
If this unit is an external declaration, return it. Otherwise return
None
.
pub fn get_declaration_mut(&mut self) -> Option<(&mut UnitName, &mut Signature)>
[src]
If this unit is an external declaration, return it. Otherwise return
None
.
pub fn is_function(&self) -> bool
[src]
Check whether this is a function.
pub fn is_process(&self) -> bool
[src]
Check whether this is a process.
pub fn is_entity(&self) -> bool
[src]
Check whether this is an entity.
pub fn is_declaration(&self) -> bool
[src]
Check whether this is a declaration of an external unit.
pub fn sig(&self) -> &Signature
[src]
Return the signature of the unit.
pub fn name(&self) -> &UnitName
[src]
Return the name of the unit.
pub fn get_dfg(&self) -> Option<&DataFlowGraph>
[src]
Return the data flow graph of the unit, if there is one.
pub fn get_dfg_mut(&mut self) -> Option<&mut DataFlowGraph>
[src]
Return the mutable data flow graph of the unit, if there is one.
Auto Trait Implementations
impl Send for ModUnitData
impl Sync for ModUnitData
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom 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 for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,