pub struct EvalOpts {
pub disallow_empty_ranges: bool,
pub disallow_out_of_range: bool,
pub disallow_dynamic_selections: bool,
}
Expand description
EvalOpts
controls runtime behavior of Selection::eval
by
enforcing stricter validation rules.
Fields§
§disallow_empty_ranges: bool
Fail eval
on empty range expressions.
disallow_out_of_range: bool
Fail eval
on a range beginning after the slice’s extent in
the evaluation context’s dimension.
disallow_dynamic_selections: bool
Fail eval
if a selection can be shown to be not “static”.
Implementations§
Auto Trait Implementations§
impl Freeze for EvalOpts
impl RefUnwindSafe for EvalOpts
impl Send for EvalOpts
impl Sync for EvalOpts
impl Unpin for EvalOpts
impl UnwindSafe for EvalOpts
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
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