[−][src]Enum codenano::patch::Patch
An atomic modification of an existing design. Patches have operation to permute them or undo them.
Variants
ElongateDomain(h, b1, n, b2, n2) elongate the b2 end of domain whose b2 end is (h, b1, n1) by n2 nucleotides
ShortenDomain(h, b1, n, b2, n2) shorten the b2 end of domain whose b2 end is (h, b1, n1) by n2 nucleotides
AddHelix(Helix)
AddHelix(h) add helix h
DeleteHelix(usize)
DeleteHelix(n) delete helix with identifier n
Add Strand (h, b, n) add a strand on helix b at position n on the right strand if b on the left strand otherwise
DeleteStrand(h, b, n) delete the strand containing only the nucleotide (h, b, n)
CrossOver(s, b1, h, n, b2) the b1 (5' if true, 3' if false) end strand s jumps to helix h at position n on the right strand if b, on the left strand otherwise
MakeBound(h1, b1, n1, h2, b2, n2) Make a bound between the nucleotides (h1, b1, n1) and (h2, b2, n2)
CutBound(h1, b1, n1, h2, b2, n2) Cut the bound between the nucleotides (h1, b1, n1) and (h2, b2, n2)
Implementations
impl Patch
[src]
pub fn apply<S: Serialize, T: Serialize>(&self, design: &mut Design<S, T>)
[src]
Apply self on a design
pub fn undo(&self) -> Self
[src]
Return the inverse of self
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Patch
impl Send for Patch
impl Sync for Patch
impl Unpin for Patch
impl UnwindSafe for Patch
Blanket Implementations
impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S where
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
[src]
D: AdaptFrom<S, Swp, Dwp, T>,
Dwp: WhitePoint,
Swp: WhitePoint,
T: Component + Float,
fn adapt_into_using<M>(self, method: M) -> D where
M: TransformMatrix<Swp, Dwp, T>,
[src]
M: TransformMatrix<Swp, Dwp, T>,
fn adapt_into(self) -> D
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,