[−][src]Struct codenano::Strand
A DNA strand.
Fields
domains: Vec<Domain<DomainLabel>>
The (ordered) vector of domains, where each domain is a directed interval of a helix.
sequence: Option<Cow<'static, str>>
The sequence of this strand, if any. If the sequence is longer than specified by the domains, a prefix is assumed. Can be skipped in the serialisation.
cyclic: bool
Is this sequence cyclic? Can be skipped (and defaults to
false
) in the serialization.
color: Option<u32>
Colour of this strand. If skipped, a default colour will be chosen automatically.
label: Option<Label>
An optional label for the strand. Can be
serde_json::Value::Null
, and skipped in the serialisation.
Methods
impl<StrandLabel, DomainLabel> Strand<StrandLabel, DomainLabel>
[src]
pub fn default_color(&self) -> u32
[src]
Provide a default color to the strand.
Trait Implementations
impl<Label: Clone, DomainLabel: Clone> Clone for Strand<Label, DomainLabel>
[src]
impl<Label: Default, DomainLabel: Default> Default for Strand<Label, DomainLabel>
[src]
impl<Label: Debug, DomainLabel: Debug> Debug for Strand<Label, DomainLabel>
[src]
impl<Label, DomainLabel> Serialize for Strand<Label, DomainLabel> where
Label: Serialize,
DomainLabel: Serialize,
[src]
Label: Serialize,
DomainLabel: Serialize,
fn serialize<__S>(&self, __serializer: __S) -> Result<__S::Ok, __S::Error> where
__S: Serializer,
[src]
__S: Serializer,
impl<'de, Label, DomainLabel> Deserialize<'de> for Strand<Label, DomainLabel> where
Label: Deserialize<'de>,
DomainLabel: Deserialize<'de>,
[src]
Label: Deserialize<'de>,
DomainLabel: Deserialize<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
Auto Trait Implementations
impl<Label, DomainLabel> Send for Strand<Label, DomainLabel> where
DomainLabel: Send,
Label: Send,
DomainLabel: Send,
Label: Send,
impl<Label, DomainLabel> Sync for Strand<Label, DomainLabel> where
DomainLabel: Sync,
Label: Sync,
DomainLabel: Sync,
Label: Sync,
impl<Label, DomainLabel> Unpin for Strand<Label, DomainLabel> where
DomainLabel: Unpin,
Label: Unpin,
DomainLabel: Unpin,
Label: Unpin,
impl<Label, DomainLabel> UnwindSafe for Strand<Label, DomainLabel> where
DomainLabel: UnwindSafe,
Label: UnwindSafe,
DomainLabel: UnwindSafe,
Label: UnwindSafe,
impl<Label, DomainLabel> RefUnwindSafe for Strand<Label, DomainLabel> where
DomainLabel: RefUnwindSafe,
Label: RefUnwindSafe,
DomainLabel: RefUnwindSafe,
Label: RefUnwindSafe,
Blanket Implementations
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From<T> for T
[src]
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
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> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> DeserializeOwned for T where
T: Deserialize<'de>,
[src]
T: Deserialize<'de>,