pub struct UserBasisBuilder<State>{ /* private fields */ }Implementations§
Source§impl<State> UserBasisBuilder<State>
impl<State> UserBasisBuilder<State>
pub fn states(self, states: impl IntoIterator<Item = State>) -> Self
Sourcepub fn deferred_states<F>(self, factory: F) -> Self
pub fn deferred_states<F>(self, factory: F) -> Self
Defer potentially expensive state enumeration until materialize or
build is called.
pub fn operator<F>(self, name: char, action: F) -> Self
Sourcepub fn branching_operator<F>(self, name: char, action: F) -> Self
pub fn branching_operator<F>(self, name: char, action: F) -> Self
Register a local action with more than one nonzero destination.
pub fn build(self) -> Result<UserBasis<State>>
pub fn materialize(self) -> Result<UserBasis<State>>
Auto Trait Implementations§
impl<State> Freeze for UserBasisBuilder<State>
impl<State> !RefUnwindSafe for UserBasisBuilder<State>
impl<State> Send for UserBasisBuilder<State>
impl<State> Sync for UserBasisBuilder<State>
impl<State> Unpin for UserBasisBuilder<State>where
State: Unpin,
impl<State> UnsafeUnpin for UserBasisBuilder<State>
impl<State> !UnwindSafe for UserBasisBuilder<State>
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
§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read more§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.