Expand description
Fixed length byte array.
Tuple Fields
0: [T; 2]
Implementations
sourceimpl<T: Numeric + Copy> Counter<T>
impl<T: Numeric + Copy> Counter<T>
pub fn from_slice<A: SeqTrait<T>>(input: &A, start: usize, len: usize) -> Self
pub fn concat<A: SeqTrait<T>>(&self, next: &A) -> Seq<T>
pub fn from_slice_range<A: SeqTrait<T>>(input: &A, r: Range<usize>) -> Self
pub fn slice(&self, start_out: usize, len: usize) -> Seq<T>
pub fn slice_range(&self, r: Range<usize>) -> Seq<T>
pub fn num_chunks(&self, chunk_size: usize) -> usize
pub fn get_chunk_len(&self, chunk_size: usize, chunk_number: usize) -> usize
pub fn get_chunk(
&self,
chunk_size: usize,
chunk_number: usize
) -> (usize, Seq<T>)
pub fn set_chunk<A: SeqTrait<T>>(
self,
chunk_size: usize,
chunk_number: usize,
input: &A
) -> Self
Trait Implementations
sourceimpl<T: Numeric + Copy> SeqTrait<T> for Counter<T>
impl<T: Numeric + Copy> SeqTrait<T> for Counter<T>
fn create(x: usize) -> Self
fn len(&self) -> usize
fn iter(&self) -> Iter<'_, T>
sourcefn update_slice<A: SeqTrait<T>>(
self,
start_out: usize,
v: &A,
start_in: usize,
len: usize
) -> Self
fn update_slice<A: SeqTrait<T>>(
self,
start_out: usize,
v: &A,
start_in: usize,
len: usize
) -> Self
Update this sequence with l
elements of v
, starting at start_in
,
at start_out
. Read more
sourcefn update<A: SeqTrait<T>>(self, start: usize, v: &A) -> Self
fn update<A: SeqTrait<T>>(self, start: usize, v: &A) -> Self
This function is within the hacspec subset of Rust: its signature and body use only hacspec constructs and
call functions whose signatures are in hacspec.
Update this sequence with v
starting at start
. Read more
sourcefn update_start<A: SeqTrait<T>>(self, v: &A) -> Self
fn update_start<A: SeqTrait<T>>(self, v: &A) -> Self
This function is within the hacspec subset of Rust: its signature and body use only hacspec constructs and call functions whose signatures are in hacspec. Read more
impl<T: Copy> Copy for Counter<T>
Auto Trait Implementations
impl<T> RefUnwindSafe for Counter<T> where
T: RefUnwindSafe,
impl<T> Send for Counter<T> where
T: Send,
impl<T> Sync for Counter<T> where
T: Sync,
impl<T> Unpin for Counter<T> where
T: Unpin,
impl<T> UnwindSafe for Counter<T> where
T: UnwindSafe,
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more