pub struct Rules {
pub lang: Lang,
pub origin: i64,
pub ct: f64,
pub nested_model: NestedModel,
pub first_disclose: FirstDisclose,
pub index_form: IndexForm,
pub dfn_result: DfnResult,
pub default_arg: DefaultArg,
pub complex_order: ComplexOrder,
pub trains: bool,
}Expand description
A dialect resolved against a language: what the parser and the engine read. Copyable, and carried by every evaluation context, so a rule that only bites at run time (the index origin a key answers with, the order a grade puts complex values in) reads the same setting the parser did.
Fields§
§lang: Lang§origin: i64The index origin in force: APL’s ⎕IO, and 0 for J.
ct: f64The comparison tolerance in force. Rules::tol pairs it with the
language’s scaling rule; a verb-local u!.n overrides that copy
and not this one.
nested_model: NestedModel§first_disclose: FirstDisclose§index_form: IndexForm§dfn_result: DfnResult§default_arg: DefaultArg§complex_order: ComplexOrder§trains: boolImplementations§
Trait Implementations§
impl Copy for Rules
impl StructuralPartialEq for Rules
Auto Trait Implementations§
impl Freeze for Rules
impl RefUnwindSafe for Rules
impl Send for Rules
impl Sync for Rules
impl Unpin for Rules
impl UnsafeUnpin for Rules
impl UnwindSafe for Rules
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