[][src]Struct stir::label::Label

pub struct Label { /* fields omitted */ }

Labels are a unique identifier attributed to a block. It represents this block and is unique.

Methods

impl Label[src]

pub fn new(prefix: &str) -> Label[src]

Return a new, unique label according to the given prefix

Example

use stir::label::Label;

let l = Label::new("bool");

assert!(l.name().contains("__bool_"));

pub fn name(&self) -> &String[src]

Return the label's actual name

Trait Implementations

impl Debug for Label[src]

Auto Trait Implementations

impl RefUnwindSafe for Label

impl Send for Label

impl Sync for Label

impl Unpin for Label

impl UnwindSafe for Label

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.