Struct noodles::core::region::Mapped [−][src]
pub struct Mapped { /* fields omitted */ }
Expand description
A mapped region.
Implementations
Creates a mapped region.
Examples
use noodles_core::Region;
assert!(Region::mapped("sq0", 5..=8).as_mapped().is_some());
Returns the reference sequence name.
Examples
use noodles_core::Region;
assert_eq!(
Region::mapped("sq0", 5..=8).as_mapped().map(|r| r.name()),
Some("sq0")
);
Returns the start position of the region (1-based).
Examples
use noodles_core::Region;
assert_eq!(
Region::mapped("sq0", 5..=8).as_mapped().map(|r| r.start()),
Some(Bound::Included(5))
);
Returns the end position of the region (1-based).
Examples
use noodles_core::Region;
assert_eq!(
Region::mapped("sq0", 5..=8).as_mapped().map(|r| r.end()),
Some(Bound::Included(8))
);
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Mapped
impl UnwindSafe for Mapped
Blanket Implementations
Mutably borrows from an owned value. Read more
Compare self to key
and return true
if they are equal.