Cloud

Struct Cloud 

Source
pub struct Cloud {
    pub bounds: Vec<Bound>,
    pub seq_len: usize,
    pub prf_len: usize,
    pub size: usize,
    pub ad_start: usize,
    pub ad_end: usize,
}

Fields§

§bounds: Vec<Bound>§seq_len: usize§prf_len: usize§size: usize§ad_start: usize§ad_end: usize

Implementations§

Source§

impl Cloud

Source

pub fn new(seq_len: usize, prf_len: usize) -> Self

Source

pub fn iter(&self) -> Iter<'_, Bound>

Source

pub fn first(&self) -> &Bound

Source

pub fn last(&self) -> &Bound

Source

pub fn resize(&mut self, new_size: usize)

Source

pub fn reset(&mut self)

Source

pub fn reuse(&mut self, seq_len: usize, prf_len: usize)

Source

pub fn append(&mut self, bound: Bound)

Source

pub fn target_len(&self) -> usize

Source

pub fn profile_len(&self) -> usize

Source

pub fn valid(&self) -> bool

Source

pub fn validity(&self) -> CloudValidity

Source

pub fn cloud_size(&self) -> usize

Get the total number of cells that exist within the cloud boundaries.

Source

pub fn num_anti_diagonals(&self) -> usize

Get the number of anti-diagonals defined in the cloud.

Source

pub fn trim_wings(&mut self) -> Result<()>

This removes all of the protruding regions in the cloud that are unreachable from a traceback that traverses the entire cloud.

Source

pub fn square_corners(&mut self)

Source

pub fn advance_forward(&mut self)

Source

pub fn advance_reverse(&mut self)

Source

pub fn fill_rectangle( &mut self, seq_start: usize, prf_start: usize, seq_end: usize, prf_end: usize, )

Source

pub fn bounding_box(&self) -> BoundingBox

Source

pub fn left_offset_to(&mut self, other: &Self) -> Ordering

Source

pub fn right_offset_to(&mut self, other: &Self) -> Ordering

Source

pub fn merge(&mut self, other: &Self)

Source

pub fn anti_diagonal_relationship(&self, other: &Self) -> Relationship

Source

pub fn cloud_relationship(&self, other: &Self) -> Relationship

Source

pub fn vec_image(&self, other: Option<&Self>) -> Result<Vec<Vec<u8>>>

Source

pub fn image(&self) -> CloudImage

Trait Implementations§

Source§

impl Clone for Cloud

Source§

fn clone(&self) -> Cloud

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Cloud

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Cloud

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Index<Ad> for Cloud

Source§

type Output = Bound

The returned type after indexing.
Source§

fn index(&self, index: Ad) -> &Self::Output

Performs the indexing (container[index]) operation. Read more
Source§

impl Index<AdOffset> for Cloud

Source§

type Output = Bound

The returned type after indexing.
Source§

fn index(&self, index: AdOffset) -> &Self::Output

Performs the indexing (container[index]) operation. Read more
Source§

impl IndexMut<Ad> for Cloud

Source§

fn index_mut(&mut self, index: Ad) -> &mut Self::Output

Performs the mutable indexing (container[index]) operation. Read more
Source§

impl IndexMut<AdOffset> for Cloud

Source§

fn index_mut(&mut self, index: AdOffset) -> &mut Self::Output

Performs the mutable indexing (container[index]) operation. Read more
Source§

impl PartialEq for Cloud

Source§

fn eq(&self, other: &Cloud) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl StructuralPartialEq for Cloud

Auto Trait Implementations§

§

impl Freeze for Cloud

§

impl RefUnwindSafe for Cloud

§

impl Send for Cloud

§

impl Sync for Cloud

§

impl Unpin for Cloud

§

impl UnwindSafe for Cloud

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V