Expand description
Describes whether an action is forbidden, penalized, or allowed without any penalty. 行為が禁止されるか、罰則付きであるか、それとも許容されるかを表現する型。
Variants§
Trait Implementations§
source§impl Clone for Consequence
impl Clone for Consequence
source§fn clone(&self) -> Consequence
fn clone(&self) -> Consequence
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 Consequence
impl Debug for Consequence
source§impl Hash for Consequence
impl Hash for Consequence
source§impl PartialEq<Consequence> for Consequence
impl PartialEq<Consequence> for Consequence
source§fn eq(&self, other: &Consequence) -> bool
fn eq(&self, other: &Consequence) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for Consequence
impl Eq for Consequence
impl StructuralEq for Consequence
impl StructuralPartialEq for Consequence
Auto Trait Implementations§
impl RefUnwindSafe for Consequence
impl Send for Consequence
impl Sync for Consequence
impl Unpin for Consequence
impl UnwindSafe for Consequence
Blanket Implementations§
§impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Qwhere
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Checks if this value is equivalent to the given key. Read more