pub struct Bits(/* private fields */);Expand description
Hard bits, one row per stream; the values are 0 or 1.
Implementations§
Source§impl Bits
impl Bits
Sourcepub fn stream_view(&self, i: usize) -> ArrayView1<'_, u8>
pub fn stream_view(&self, i: usize) -> ArrayView1<'_, u8>
Stream i as an ndarray view.
Sourcepub fn stream_view_mut(&mut self, i: usize) -> ArrayViewMut1<'_, u8>
pub fn stream_view_mut(&mut self, i: usize) -> ArrayViewMut1<'_, u8>
Stream i as a mutable ndarray view.
Sourcepub fn set_stream(&mut self, x: &[u8])
pub fn set_stream(&mut self, x: &[u8])
Make self the single stream x, reusing its storage when the length is
unchanged (ADR 0011).
Sourcepub fn assign(&mut self, a: &Array2<u8>)
pub fn assign(&mut self, a: &Array2<u8>)
Make self a copy of a, reusing its storage when the shape is
unchanged (ADR 0011).
Sourcepub fn stream_mut(&mut self, i: usize) -> &mut [u8] ⓘ
pub fn stream_mut(&mut self, i: usize) -> &mut [u8] ⓘ
Stream i as a mutable slice.
Sourcepub fn as_slice_mut(&mut self) -> &mut [u8] ⓘ
pub fn as_slice_mut(&mut self) -> &mut [u8] ⓘ
All the elements, stream after stream, mutable.
Sourcepub fn as_array_mut(&mut self) -> &mut Array2<u8>
pub fn as_array_mut(&mut self) -> &mut Array2<u8>
The underlying array, mutable.
Trait Implementations§
impl StructuralPartialEq for Bits
Auto Trait Implementations§
impl Forget for Bits
impl Freeze for Bits
impl RefUnwindSafe for Bits
impl Send for Bits
impl Sync for Bits
impl Unpin for Bits
impl UnsafeUnpin for Bits
impl UnwindSafe for Bits
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