pub enum ReactionArrow {
Forward,
Reverse,
Reversible,
Equilibrium,
}Expand description
A reaction arrow style.
Variants§
Forward
Forward reaction arrow.
Reverse
Reverse reaction arrow.
Reversible
Reversible reaction arrow.
Equilibrium
Equilibrium reaction arrow.
Implementations§
Source§impl ReactionArrow
impl ReactionArrow
Sourcepub const fn direction(self) -> ReactionDirection
pub const fn direction(self) -> ReactionDirection
Returns the lightweight direction label for this arrow.
Sourcepub const fn is_reversible(self) -> bool
pub const fn is_reversible(self) -> bool
Returns true for reversible or equilibrium arrows.
Sourcepub const fn is_forward(self) -> bool
pub const fn is_forward(self) -> bool
Returns true for Self::Forward.
Sourcepub const fn is_reverse(self) -> bool
pub const fn is_reverse(self) -> bool
Returns true for Self::Reverse.
Trait Implementations§
Source§impl Clone for ReactionArrow
impl Clone for ReactionArrow
Source§fn clone(&self) -> ReactionArrow
fn clone(&self) -> ReactionArrow
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 ReactionArrow
impl Debug for ReactionArrow
Source§impl Default for ReactionArrow
impl Default for ReactionArrow
Source§fn default() -> ReactionArrow
fn default() -> ReactionArrow
Returns the “default value” for a type. Read more
Source§impl Display for ReactionArrow
impl Display for ReactionArrow
Source§impl Hash for ReactionArrow
impl Hash for ReactionArrow
Source§impl Ord for ReactionArrow
impl Ord for ReactionArrow
Source§fn cmp(&self, other: &ReactionArrow) -> Ordering
fn cmp(&self, other: &ReactionArrow) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Compares and returns the maximum of two values. Read more
Source§impl PartialEq for ReactionArrow
impl PartialEq for ReactionArrow
Source§impl PartialOrd for ReactionArrow
impl PartialOrd for ReactionArrow
impl Copy for ReactionArrow
impl Eq for ReactionArrow
impl StructuralPartialEq for ReactionArrow
Auto Trait Implementations§
impl Freeze for ReactionArrow
impl RefUnwindSafe for ReactionArrow
impl Send for ReactionArrow
impl Sync for ReactionArrow
impl Unpin for ReactionArrow
impl UnsafeUnpin for ReactionArrow
impl UnwindSafe for ReactionArrow
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