pub enum PutMode {
Raise,
Wrap,
Clip,
}Expand description
Out-of-bounds index behaviour for MaskedArray::put, mirroring numpy’s
mode keyword ({'raise', 'wrap', 'clip'}, numpy/ma/core.py:4852).
Variants§
Raise
'raise' — an out-of-range index returns IndexOutOfBounds.
Wrap
'wrap' — indices wrap around modulo the length (Python modulo, so a
negative index wraps from the end).
Clip
'clip' — indices are clamped into [0, len); negatives clip to 0.
Implementations§
Trait Implementations§
impl Copy for PutMode
impl Eq for PutMode
impl StructuralPartialEq for PutMode
Auto Trait Implementations§
impl Freeze for PutMode
impl RefUnwindSafe for PutMode
impl Send for PutMode
impl Sync for PutMode
impl Unpin for PutMode
impl UnsafeUnpin for PutMode
impl UnwindSafe for PutMode
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