#[repr(C)]pub struct PositionArray {
pub data: *mut usize,
pub len: usize,
}Expand description
Find positions of invalid bases (N or other) in a sequence
Returns array of positions where invalid bases occur. Useful for debugging or understanding where k-mer resets happen.
§Safety
- sequence must point to valid memory of length bytes
- Returned array must be freed with ragc_free_position_array()
Fields§
§data: *mut usize§len: usizeAuto Trait Implementations§
impl !Send for PositionArray
impl !Sync for PositionArray
impl Freeze for PositionArray
impl RefUnwindSafe for PositionArray
impl Unpin for PositionArray
impl UnsafeUnpin for PositionArray
impl UnwindSafe for PositionArray
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more