Struct bitarray_naive::OutOfRangeError
source · Expand description
Struct represents a custom error that should be raised every time a user tries to access or set the bit in the array that is out of this bit array size.
Fields§
§bitarray_size: i64
§bitarray_position: i64
Implementations§
source§impl OutOfRangeError
impl OutOfRangeError
sourcepub fn new(bitarray_size: i64, bitarray_position: i64) -> Self
pub fn new(bitarray_size: i64, bitarray_position: i64) -> Self
Constructor used to initialize a new OutOfRangeError with a given bitarray_size and bitarray_position. “bitarray_size” - The size in bits of the bitarray where the error was raised. “bitarray_position” - The wrong position caused an error.
Trait Implementations§
source§impl Clone for OutOfRangeError
impl Clone for OutOfRangeError
source§fn clone(&self) -> OutOfRangeError
fn clone(&self) -> OutOfRangeError
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more