pub enum EscapeRule {
BothFaces,
FrontOnly,
}Expand description
What happens when an electron reaches a face of the target. Whether it can
get out at all is decided by the BoundaryModel; an electron that does
leave never returns.
Variants§
BothFaces
Both the front face (x = 0) and the back face of a finite stack
release the electron (Fate::Escaped with Face::Front or
Face::Back).
FrontOnly
The front face releases the electron; the back face of a finite stack
absorbs it (Fate::Absorbed).
Trait Implementations§
Source§impl Clone for EscapeRule
impl Clone for EscapeRule
Source§fn clone(&self) -> EscapeRule
fn clone(&self) -> EscapeRule
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 EscapeRule
Source§impl Debug for EscapeRule
impl Debug for EscapeRule
impl Eq for EscapeRule
Source§impl PartialEq for EscapeRule
impl PartialEq for EscapeRule
Source§impl Serialize for EscapeRule
impl Serialize for EscapeRule
impl StructuralPartialEq for EscapeRule
Auto Trait Implementations§
impl Freeze for EscapeRule
impl RefUnwindSafe for EscapeRule
impl Send for EscapeRule
impl Sync for EscapeRule
impl Unpin for EscapeRule
impl UnsafeUnpin for EscapeRule
impl UnwindSafe for EscapeRule
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more