pub struct Block {
pub size: Coord,
pub query_start: Coord,
pub reference_start: Coord,
}Expand description
One alignment block of a PSL record.
A PSL block is described by three parallel coordinate lists in the file
(blockSizes, qStarts, tStarts); a Block materializes one entry of
each. query_start/reference_start are stored exactly as they appear in
the file — i.e. in reverse-complement coordinates when the corresponding
strand is -. Use crate::Psl::query_block_forward /
crate::Psl::reference_block_interval for forward-strand intervals.
§Fields
size- Block length (in amino acids when the query is a protein)query_start- Start of the block on the query (rawqStarts[i])reference_start- Start of the block on the reference (rawtStarts[i])
Fields§
§size: Coord§query_start: Coord§reference_start: CoordTrait Implementations§
impl Copy for Block
impl Eq for Block
impl StructuralPartialEq for Block
Auto Trait Implementations§
impl Freeze for Block
impl RefUnwindSafe for Block
impl Send for Block
impl Sync for Block
impl Unpin for Block
impl UnsafeUnpin for Block
impl UnwindSafe for Block
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