pub enum ControlStrictness {
Lenient,
Strict,
}Expand description
How strictly a control structure reads what it is given.
The lenient reading is the one both languages ship: a condition is true
where its first atom is, whatever else it holds, and a :Leave outside
a loop leaves the definition. Dyalog reads both strictly — a condition
is one element and no more, and :Leave belongs to a loop — and says so
rather than answering. GNU APL has no control structures at all, so
nothing it records turns on this.
Variants§
Lenient
The first atom decides, and a stray :Leave is a return.
Strict
Dyalog: a condition is a single value, and :Leave needs its loop.
Trait Implementations§
Source§impl Clone for ControlStrictness
impl Clone for ControlStrictness
Source§fn clone(&self) -> ControlStrictness
fn clone(&self) -> ControlStrictness
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 ControlStrictness
Source§impl Debug for ControlStrictness
impl Debug for ControlStrictness
Source§impl Default for ControlStrictness
impl Default for ControlStrictness
Source§fn default() -> ControlStrictness
fn default() -> ControlStrictness
Returns the “default value” for a type. Read more
impl Eq for ControlStrictness
Source§impl PartialEq for ControlStrictness
impl PartialEq for ControlStrictness
impl StructuralPartialEq for ControlStrictness
Auto Trait Implementations§
impl Freeze for ControlStrictness
impl RefUnwindSafe for ControlStrictness
impl Send for ControlStrictness
impl Sync for ControlStrictness
impl Unpin for ControlStrictness
impl UnsafeUnpin for ControlStrictness
impl UnwindSafe for ControlStrictness
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.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