pub enum CommittedStatus {
Committed,
Uncommitted,
}
Expand description
A structure representing the commit status of the parser.
パーサのコミット状態を表す構造体。
Variants§
Implementations§
Source§impl CommittedStatus
impl CommittedStatus
Sourcepub fn is_committed(&self) -> bool
pub fn is_committed(&self) -> bool
Returns whether committed or not.
Sourcepub fn is_uncommitted(&self) -> bool
pub fn is_uncommitted(&self) -> bool
Returns whether uncommitted or not.
Sourcepub fn or(&self, other: Self) -> Self
pub fn or(&self, other: Self) -> Self
Compose CommittedStatus.
If either one is already committed, it returns it. Otherwise, it returns uncommitted.
Trait Implementations§
Source§impl Clone for CommittedStatus
impl Clone for CommittedStatus
Source§fn clone(&self) -> CommittedStatus
fn clone(&self) -> CommittedStatus
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 CommittedStatus
impl Debug for CommittedStatus
Source§impl From<bool> for CommittedStatus
impl From<bool> for CommittedStatus
Source§impl PartialEq for CommittedStatus
impl PartialEq for CommittedStatus
Source§impl PartialOrd for CommittedStatus
impl PartialOrd for CommittedStatus
impl Copy for CommittedStatus
impl StructuralPartialEq for CommittedStatus
Auto Trait Implementations§
impl Freeze for CommittedStatus
impl RefUnwindSafe for CommittedStatus
impl Send for CommittedStatus
impl Sync for CommittedStatus
impl Unpin for CommittedStatus
impl UnwindSafe for CommittedStatus
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