Struct rustc_transmute::layout::nfa::Nfa
source · pub(crate) struct Nfa<R>where
R: Ref,{
pub(crate) transitions: Map<State, Map<Transition<R>, Set<State>>>,
pub(crate) start: State,
pub(crate) accepting: State,
}
Expand description
A non-deterministic finite automaton (NFA) that represents the layout of a type.
The transmutability of two given types is computed by comparing their Nfa
s.
Fields§
§transitions: Map<State, Map<Transition<R>, Set<State>>>
§start: State
§accepting: State
Implementations§
source§impl<R> Nfa<R>where
R: Ref,
impl<R> Nfa<R>where
R: Ref,
Trait Implementations§
source§impl<R> PartialEq<Nfa<R>> for Nfa<R>where
R: Ref + PartialEq,
impl<R> PartialEq<Nfa<R>> for Nfa<R>where
R: Ref + PartialEq,
impl<R> StructuralPartialEq for Nfa<R>where
R: Ref,
Auto Trait Implementations§
impl<R> RefUnwindSafe for Nfa<R>where
R: RefUnwindSafe,
impl<R> Send for Nfa<R>where
R: Send,
impl<R> Sync for Nfa<R>where
R: Sync,
impl<R> Unpin for Nfa<R>where
R: Unpin,
impl<R> UnwindSafe for Nfa<R>where
R: UnwindSafe,
Blanket Implementations§
Layout§
Note: Most layout information is completely unstable and may even differ between compilations. The only exception is types with certain repr(...)
attributes. Please see the Rust Reference’s “Type Layout” chapter for details on type layout guarantees.
Size: 64 bytes