pub enum SubscriptIndexBehavior {
OneBased,
ZeroBased,
OneBasedWithZeroAlias,
Ambiguous,
}Expand description
Option-sensitive shell behavior enums reused by linter facts and rules. How indexed array subscripts are interpreted at a source offset.
Variants§
OneBased
Subscript 1 names the first array element.
ZeroBased
Subscript 0 names the first array element.
OneBasedWithZeroAlias
Subscript 1 names the first element, but 0 is accepted as an alias.
Ambiguous
Runtime option state may select more than one indexing policy.
Trait Implementations§
Source§impl Clone for SubscriptIndexBehavior
impl Clone for SubscriptIndexBehavior
Source§fn clone(&self) -> SubscriptIndexBehavior
fn clone(&self) -> SubscriptIndexBehavior
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 SubscriptIndexBehavior
Source§impl Debug for SubscriptIndexBehavior
impl Debug for SubscriptIndexBehavior
impl Eq for SubscriptIndexBehavior
Source§impl PartialEq for SubscriptIndexBehavior
impl PartialEq for SubscriptIndexBehavior
impl StructuralPartialEq for SubscriptIndexBehavior
Auto Trait Implementations§
impl Freeze for SubscriptIndexBehavior
impl RefUnwindSafe for SubscriptIndexBehavior
impl Send for SubscriptIndexBehavior
impl Sync for SubscriptIndexBehavior
impl Unpin for SubscriptIndexBehavior
impl UnsafeUnpin for SubscriptIndexBehavior
impl UnwindSafe for SubscriptIndexBehavior
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