Enum BarrierKind
#[non_exhaustive]pub enum BarrierKind {
DownIn,
DownOut,
UpIn,
UpOut,
}Expand description
Which side a single barrier sits on and whether touching it brings the option in or knocks it out.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
DownIn
Comes alive if the spot falls to the barrier.
DownOut
Dies if the spot falls to the barrier.
UpIn
Comes alive if the spot rises to the barrier.
UpOut
Dies if the spot rises to the barrier.
Implementations§
§impl BarrierKind
impl BarrierKind
§impl BarrierKind
impl BarrierKind
Trait Implementations§
§impl Clone for BarrierKind
impl Clone for BarrierKind
§fn clone(&self) -> BarrierKind
fn clone(&self) -> BarrierKind
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for BarrierKind
§impl Debug for BarrierKind
impl Debug for BarrierKind
impl Eq for BarrierKind
§impl FromStr for BarrierKind
impl FromStr for BarrierKind
§impl Hash for BarrierKind
impl Hash for BarrierKind
§impl PartialEq for BarrierKind
impl PartialEq for BarrierKind
impl StructuralPartialEq for BarrierKind
Auto Trait Implementations§
impl Freeze for BarrierKind
impl RefUnwindSafe for BarrierKind
impl Send for BarrierKind
impl Sync for BarrierKind
impl Unpin for BarrierKind
impl UnsafeUnpin for BarrierKind
impl UnwindSafe for BarrierKind
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