[][src]Struct c2rust_transpile::cfg::multiples::MultipleInfo

pub struct MultipleInfo<Lbl: Hash + Ord> { /* fields omitted */ }

Information about branching in a CFG.

Methods

impl<Lbl: Hash + Ord + Clone> MultipleInfo<Lbl>[src]

pub fn new() -> Self[src]

pub fn absorb(&mut self, other: MultipleInfo<Lbl>)[src]

Merge the information from another MultipleInfo into this MultipleInfo

pub fn rewrite_blocks(&mut self, rewrites: &IndexMap<Lbl, Lbl>)[src]

Rewrite nodes to take into account a node remapping. Note that the remapping is usually going to be very much not injective - the whole point of remapping is to merge some nodes.

pub fn add_multiple(&mut self, join: Lbl, arms: Vec<(Lbl, IndexSet<Lbl>)>)[src]

Add in information about a new multiple

pub fn get_multiple<'a>(
    &'a self,
    entries: &BTreeSet<Lbl>
) -> Option<&'a (Lbl, IndexMap<Lbl, IndexSet<Lbl>>)>
[src]

Look up the multiple, if there is one, which corresponds to the given set of entry labels.

Trait Implementations

impl<Lbl: Clone + Hash + Ord> Clone for MultipleInfo<Lbl>[src]

default fn clone_from(&mut self, source: &Self)
1.0.0
[src]

Performs copy-assignment from source. Read more

impl<Lbl: Debug + Hash + Ord> Debug for MultipleInfo<Lbl>[src]

Auto Trait Implementations

impl<Lbl> Send for MultipleInfo<Lbl> where
    Lbl: Send

impl<Lbl> Sync for MultipleInfo<Lbl> where
    Lbl: Sync

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

impl<T> From for T[src]

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

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.

impl<E> SpecializationError for E[src]

impl<T> Erased for T[src]

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

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

impl<T> Make for T[src]

impl<T> MaybeResult for T[src]

impl<'a, T> Captures for T where
    T: ?Sized
[src]

impl<T> Erased for T