pub struct StateAttributes(/* private fields */);
Expand description
A set of attributes that can be associated with a State
.
Implementations§
Source§impl StateAttributes
impl StateAttributes
Sourcepub const REJECTING: Self
pub const REJECTING: Self
Marks that the State
is rejecting,
i.e. there is no possible path to any accepting state from it.
Sourcepub const TRANSITIONS_TO_ACCEPTING: Self
pub const TRANSITIONS_TO_ACCEPTING: Self
Sourcepub const HAS_ARRAY_TRANSITION: Self
pub const HAS_ARRAY_TRANSITION: Self
Marks that the State
contains some transition labelled with an array index or slice.
Sourcepub const HAS_ARRAY_TRANSITION_TO_ACCEPTING: Self
pub const HAS_ARRAY_TRANSITION_TO_ACCEPTING: Self
Sourcepub fn is_accepting(&self) -> bool
pub fn is_accepting(&self) -> bool
Check if the the state is accepting.
Sourcepub fn is_rejecting(&self) -> bool
pub fn is_rejecting(&self) -> bool
Check if the state is rejecting, i.e. there is no possible path to any accepting state from it.
Sourcepub fn has_transition_to_accepting(&self) -> bool
pub fn has_transition_to_accepting(&self) -> bool
Sourcepub fn is_unitary(&self) -> bool
pub fn is_unitary(&self) -> bool
Sourcepub fn has_array_transition(&self) -> bool
pub fn has_array_transition(&self) -> bool
Marks that the State
contains some transition labelled with an array index or slice.
Sourcepub fn has_array_transition_to_accepting(&self) -> bool
pub fn has_array_transition_to_accepting(&self) -> bool
Trait Implementations§
Source§impl BitOr for StateAttributes
impl BitOr for StateAttributes
Source§impl Clone for StateAttributes
impl Clone for StateAttributes
Source§fn clone(&self) -> StateAttributes
fn clone(&self) -> StateAttributes
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for StateAttributes
impl Debug for StateAttributes
Source§impl Default for StateAttributes
impl Default for StateAttributes
Source§fn default() -> StateAttributes
fn default() -> StateAttributes
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for StateAttributes
impl<'de> Deserialize<'de> for StateAttributes
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Hash for StateAttributes
impl Hash for StateAttributes
Source§impl PartialEq for StateAttributes
impl PartialEq for StateAttributes
Source§impl Serialize for StateAttributes
impl Serialize for StateAttributes
impl Copy for StateAttributes
impl Eq for StateAttributes
impl StructuralPartialEq for StateAttributes
Auto Trait Implementations§
impl Freeze for StateAttributes
impl RefUnwindSafe for StateAttributes
impl Send for StateAttributes
impl Sync for StateAttributes
impl Unpin for StateAttributes
impl UnwindSafe for StateAttributes
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