Struct HIRStream

Source
pub struct HIRStream<'hir> {
    pub stream: Vec<IRStmt<'hir>>,
    pub types: TypeTable<'hir>,
}
Expand description

High-level IR stream that contains the ir stream as well as a typetable. This is output by the IRGenerator and used as an input for various optimizations.

Fields§

§stream: Vec<IRStmt<'hir>>§types: TypeTable<'hir>

Implementations§

Source§

impl<'hir> HIRStream<'hir>

Source

pub fn stream_ref(&self) -> &Vec<IRStmt<'hir>>

Source

pub fn mut_stream_ref(&mut self) -> &mut Vec<IRStmt<'hir>>

Trait Implementations§

Source§

impl<'hir> Debug for HIRStream<'hir>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'hir> Default for HIRStream<'hir>

Source§

fn default() -> HIRStream<'hir>

Returns the “default value” for a type. Read more
Source§

impl Display for HIRStream<'_>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'hir> Freeze for HIRStream<'hir>

§

impl<'hir> RefUnwindSafe for HIRStream<'hir>

§

impl<'hir> Send for HIRStream<'hir>

§

impl<'hir> Sync for HIRStream<'hir>

§

impl<'hir> Unpin for HIRStream<'hir>

§

impl<'hir> UnwindSafe for HIRStream<'hir>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.