pub struct BED<const N: u8> {
pub name: Option<String>,
pub score: Option<Score>,
pub strand: Option<Strand>,
pub optional_fields: OptionalFields,
/* private fields */
}Expand description
A standard BED record.
Fields§
§name: Option<String>§score: Option<Score>§strand: Option<Strand>§optional_fields: OptionalFieldsImplementations§
Trait Implementations§
source§impl<const N: u8> BEDLike for BED<N>
impl<const N: u8> BEDLike for BED<N>
source§fn set_start(&mut self, start: u64) -> &mut Self
fn set_start(&mut self, start: u64) -> &mut Self
Change the 0-based start position of the record
source§fn set_end(&mut self, end: u64) -> &mut Self
fn set_end(&mut self, end: u64) -> &mut Self
Change the end position (non-inclusive) of the record
source§fn len(&self) -> u64
fn len(&self) -> u64
Return the length of the record. Return 0 if the end position is smaller
than the start position.
fn compare(&self, other: &Self) -> Ordering
source§fn n_overlap<B: BEDLike>(&self, other: &B) -> u64
fn n_overlap<B: BEDLike>(&self, other: &B) -> u64
Return the size of overlap between two records
source§fn to_genomic_range(&self) -> GenomicRange
fn to_genomic_range(&self) -> GenomicRange
Convert the record to a
GenomicRangesource§impl<'de, const N: u8> Deserialize<'de> for BED<N>
impl<'de, const N: u8> Deserialize<'de> for BED<N>
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
source§impl<const N: u8> PartialEq for BED<N>
impl<const N: u8> PartialEq for BED<N>
impl<const N: u8> Eq for BED<N>
impl<const N: u8> StructuralPartialEq for BED<N>
Auto Trait Implementations§
impl<const N: u8> Freeze for BED<N>
impl<const N: u8> RefUnwindSafe for BED<N>
impl<const N: u8> Send for BED<N>
impl<const N: u8> Sync for BED<N>
impl<const N: u8> Unpin for BED<N>
impl<const N: u8> UnwindSafe for BED<N>
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<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.source§impl<T> Pointable for T
impl<T> Pointable for T
source§impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
impl<SS, SP> SupersetOf<SS> for SPwhere
SS: SubsetOf<SP>,
source§fn to_subset(&self) -> Option<SS>
fn to_subset(&self) -> Option<SS>
The inverse inclusion map: attempts to construct
self from the equivalent element of its
superset. Read moresource§fn is_in_subset(&self) -> bool
fn is_in_subset(&self) -> bool
Checks if
self is actually part of its subset T (and can be converted to it).source§fn to_subset_unchecked(&self) -> SS
fn to_subset_unchecked(&self) -> SS
Use with care! Same as
self.to_subset but without any property checks. Always succeeds.source§fn from_subset(element: &SS) -> SP
fn from_subset(element: &SS) -> SP
The inclusion map: converts
self to the equivalent element of its superset.