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
sourceimpl<R> Nfa<R>where
R: Ref,
impl<R> Nfa<R>where
R: Ref,
Trait Implementations
sourceimpl<R: PartialEq> PartialEq<Nfa<R>> for Nfa<R>where
R: Ref,
impl<R: PartialEq> PartialEq<Nfa<R>> for Nfa<R>where
R: Ref,
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
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn 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