Struct rustc_transmute::layout::nfa::Nfa
source · pub(crate) struct Nfa<R>where
R: Ref,{
pub(crate) transitions: FxIndexMap<State, FxIndexMap<Transition<R>, FxIndexSet<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: FxIndexMap<State, FxIndexMap<Transition<R>, FxIndexSet<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§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
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