pub struct Range { /* private fields */ }
Implementations
sourceimpl Range
impl Range
pub fn name(&self) -> &String
pub fn chr(&self) -> &String
pub fn strand(&self) -> &String
pub fn start(&self) -> &i32
pub fn end(&self) -> &i32
pub fn strand_mut(&mut self) -> &mut String
pub fn new() -> Self
sourcepub fn from(chr: &str, start: i32, end: i32) -> Self
pub fn from(chr: &str, start: i32, end: i32) -> Self
Constructed from chr, start and end
let range = Range::from("I", 1, 100);
sourcepub fn from_str(range: &str) -> Self
pub fn from_str(range: &str) -> Self
Constructed from string
let range = Range::from_str("I:1-100");
let range = Range::from_str("I:100");
let range = Range::from_str("S288c.I(-):27070-29557");
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Range
impl Send for Range
impl Sync for Range
impl Unpin for Range
impl UnwindSafe for Range
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcepub fn borrow_mut(&mut self) -> &mut T
pub fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcepub fn to_owned(&self) -> T
pub fn to_owned(&self) -> T
Creates owned data from borrowed data, usually by cloning. Read more
sourcepub fn clone_into(&self, target: &mut T)
pub fn clone_into(&self, target: &mut T)
🔬 This is a nightly-only experimental API. (
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more