pub struct Breakpoints {
pub breakpoints: Vec<usize>,
pub length: usize,
}
Fields§
§breakpoints: Vec<usize>
An ascending list of breakpoints. All elements must be between 0 and length exclusive.
length: usize
The total length; i.e., the limit of the final word.
Implementations§
Source§impl Breakpoints
impl Breakpoints
pub fn from_bies_matrix( algorithm: Algorithm, matrix: &BiesMatrix, valid_breakpoints: impl Iterator<Item = usize>, ) -> Self
Trait Implementations§
Source§impl Clone for Breakpoints
impl Clone for Breakpoints
Source§fn clone(&self) -> Breakpoints
fn clone(&self) -> Breakpoints
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 moreSource§impl Debug for Breakpoints
impl Debug for Breakpoints
Source§impl Default for Breakpoints
impl Default for Breakpoints
Source§fn default() -> Breakpoints
fn default() -> Breakpoints
Returns the “default value” for a type. Read more
Source§impl<'a> From<&'a Breakpoints> for BiesString<'a>
impl<'a> From<&'a Breakpoints> for BiesString<'a>
Source§fn from(other: &'a Breakpoints) -> Self
fn from(other: &'a Breakpoints) -> Self
Converts to this type from the input type.
Source§impl PartialEq for Breakpoints
impl PartialEq for Breakpoints
impl StructuralPartialEq for Breakpoints
Auto Trait Implementations§
impl Freeze for Breakpoints
impl RefUnwindSafe for Breakpoints
impl Send for Breakpoints
impl Sync for Breakpoints
impl Unpin for Breakpoints
impl UnwindSafe for Breakpoints
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