Struct rsonpath_lib::query::automaton::StateAttributes
source · pub struct StateAttributes(_);
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 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
Trait Implementations§
source§impl BitOr<StateAttributes> for StateAttributes
impl BitOr<StateAttributes> for StateAttributes
source§impl Clone for StateAttributes
impl Clone for StateAttributes
source§fn clone(&self) -> StateAttributes
fn clone(&self) -> StateAttributes
Returns a copy 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 Hash for StateAttributes
impl Hash for StateAttributes
source§impl PartialEq<StateAttributes> for StateAttributes
impl PartialEq<StateAttributes> for StateAttributes
source§fn eq(&self, other: &StateAttributes) -> bool
fn eq(&self, other: &StateAttributes) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for StateAttributes
impl Eq for StateAttributes
impl StructuralEq for StateAttributes
impl StructuralPartialEq for StateAttributes
Auto Trait Implementations§
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