pub struct ReadOp {
pub kind: ReadOpKind,
pub len: u32,
pub ref_start0: u32,
pub read_start: u32,
}Expand description
One alignment operation with explicit reference/read coordinates.
Fields§
§kind: ReadOpKind§len: u32§ref_start0: u32§read_start: u32Implementations§
Source§impl ReadOp
impl ReadOp
Sourcepub fn new(kind: ReadOpKind, len: u32, ref_start0: u32, read_start: u32) -> Self
pub fn new(kind: ReadOpKind, len: u32, ref_start0: u32, read_start: u32) -> Self
Create a positioned read operation.
Sourcepub fn can_observe_reference_base(&self) -> bool
pub fn can_observe_reference_base(&self) -> bool
Return true if this operation can yield a base for a reference position.
Sourcepub fn contains_ref_pos(&self, pos0: u32) -> bool
pub fn contains_ref_pos(&self, pos0: u32) -> bool
Return true if this operation covers pos0 on the reference.
Sourcepub fn read_pos_for_ref_pos(&self, pos0: u32) -> Option<u32>
pub fn read_pos_for_ref_pos(&self, pos0: u32) -> Option<u32>
Map reference coordinate to read coordinate for aligned-base operations.
Trait Implementations§
impl Copy for ReadOp
impl Eq for ReadOp
impl StructuralPartialEq for ReadOp
Auto Trait Implementations§
impl Freeze for ReadOp
impl RefUnwindSafe for ReadOp
impl Send for ReadOp
impl Sync for ReadOp
impl Unpin for ReadOp
impl UnsafeUnpin for ReadOp
impl UnwindSafe for ReadOp
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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