[−][src]Enum rust_htslib::bam::FetchDefinition
Enum for IndexdReader.fetch() arguments.
tids may be converted From<>:
- i32 (correct as per spec)
- u32 (because of header.tid. Will panic if above 2^31-1).
Coordinates may be (via FetchCoordinate)
- i32 (as of the sam v1 spec)
- i64 (as of the htslib 'large coordinate' extension (even though they are not supported in BAM)
- u32 (because that's what rust literals will default to)
- u64 (because of header.target_len(). Will panic if above 2^^63-1).
Variants
tid, start, stop,
'named-reference', start, stop tuple.
CompleteTid(i32)
complete reference. May be i32 or u32 (which panics if above 2^31-')
complete reference by name (&u8 or &str)
Every read
Only reads with the BAM flag BAM_FUNMAP (which might not be all reads with reference = -1)
Trait Implementations
impl<'a> Debug for FetchDefinition<'a>
[src]
impl<'a> From<&'a [u8]> for FetchDefinition<'a>
[src]
impl<'a, T: AsRef<[u8]>> From<&'a T> for FetchDefinition<'a>
[src]
pub fn from(s: &'a T) -> FetchDefinition<'a>
[src]
impl<'a> From<&'a str> for FetchDefinition<'a>
[src]
pub fn from(s: &'a str) -> FetchDefinition<'a>
[src]
impl<'a, X: Into<FetchCoordinate>, Y: Into<FetchCoordinate>> From<(&'a [u8], X, Y)> for FetchDefinition<'a>
[src]
impl<'a, T: AsRef<[u8]>, X: Into<FetchCoordinate>, Y: Into<FetchCoordinate>> From<(&'a T, X, Y)> for FetchDefinition<'a>
[src]
impl<'a, X: Into<FetchCoordinate>, Y: Into<FetchCoordinate>> From<(&'a str, X, Y)> for FetchDefinition<'a>
[src]
impl<'a, X: Into<FetchCoordinate>, Y: Into<FetchCoordinate>> From<(i32, X, Y)> for FetchDefinition<'a>
[src]
impl<'a, X: Into<FetchCoordinate>, Y: Into<FetchCoordinate>> From<(u32, X, Y)> for FetchDefinition<'a>
[src]
impl<'a> From<i32> for FetchDefinition<'a>
[src]
pub fn from(tid: i32) -> FetchDefinition<'a>
[src]
impl<'a> From<u32> for FetchDefinition<'a>
[src]
pub fn from(tid: u32) -> FetchDefinition<'a>
[src]
Auto Trait Implementations
impl<'a> RefUnwindSafe for FetchDefinition<'a>
impl<'a> Send for FetchDefinition<'a>
impl<'a> Sync for FetchDefinition<'a>
impl<'a> Unpin for FetchDefinition<'a>
impl<'a> UnwindSafe for FetchDefinition<'a>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
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.
pub 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>,