pub struct Exon {
pub number: u32,
pub start: u64,
pub end: u64,
pub genomic_start: Option<u64>,
pub genomic_end: Option<u64>,
}Expand description
An exon in a transcript
Fields§
§number: u32Exon number (1-based)
start: u64Start position in transcript coordinates (1-based, inclusive)
end: u64End position in transcript coordinates (1-based, inclusive)
genomic_start: Option<u64>Genomic start position (1-based, inclusive)
genomic_end: Option<u64>Genomic end position (1-based, inclusive)
Implementations§
Source§impl Exon
impl Exon
Sourcepub fn new(number: u32, start: u64, end: u64) -> Self
pub fn new(number: u32, start: u64, end: u64) -> Self
Create a new exon with transcript coordinates only
Sourcepub fn with_genomic(
number: u32,
start: u64,
end: u64,
genomic_start: u64,
genomic_end: u64,
) -> Self
pub fn with_genomic( number: u32, start: u64, end: u64, genomic_start: u64, genomic_end: u64, ) -> Self
Create a new exon with both transcript and genomic coordinates
pub fn is_empty(&self) -> bool
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Exon
impl<'de> Deserialize<'de> for Exon
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for Exon
impl StructuralPartialEq for Exon
Auto Trait Implementations§
impl Freeze for Exon
impl RefUnwindSafe for Exon
impl Send for Exon
impl Sync for Exon
impl Unpin for Exon
impl UnsafeUnpin for Exon
impl UnwindSafe for Exon
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.