pub struct AlignmentSegment {
pub start: i32,
pub end: i32,
pub center: i32,
pub score: f64,
pub skip_forward: i32,
pub skip_backward: i32,
pub pair: Option<usize>,
pub number: i32,
}Expand description
An aligned segment region.
Replaces the C Segment struct which uses raw pointer-based pairing.
Here, the paired segment is referenced by an optional index into the
segment collection.
Fields§
§start: i32§end: i32§center: i32§score: f64§skip_forward: i32§skip_backward: i32§pair: Option<usize>Index of the paired segment, if any.
number: i32Trait Implementations§
Source§impl Clone for AlignmentSegment
impl Clone for AlignmentSegment
Source§fn clone(&self) -> AlignmentSegment
fn clone(&self) -> AlignmentSegment
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for AlignmentSegment
impl Debug for AlignmentSegment
Source§impl Default for AlignmentSegment
impl Default for AlignmentSegment
Source§fn default() -> AlignmentSegment
fn default() -> AlignmentSegment
Returns the “default value” for a type. Read more
Source§impl PartialEq for AlignmentSegment
impl PartialEq for AlignmentSegment
impl StructuralPartialEq for AlignmentSegment
Auto Trait Implementations§
impl Freeze for AlignmentSegment
impl RefUnwindSafe for AlignmentSegment
impl Send for AlignmentSegment
impl Sync for AlignmentSegment
impl Unpin for AlignmentSegment
impl UnsafeUnpin for AlignmentSegment
impl UnwindSafe for AlignmentSegment
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