[−][src]Struct seq_io::fastx::RefRecord
A FASTX record that borrows data from a buffer
It implements the traits BaseRecord
and
Record
.
Implementations
impl<'a, S> RefRecord<'a, S> where
S: PositionStore,
[src]
S: PositionStore,
pub fn seq_lines(&self) -> impl Iterator<Item = &'a [u8]> + DoubleEndedIterator
[src]
Returns an iterator over all sequence lines in the data. The exact
type of the iterator depends on the generic parameter S
.
pub fn opt_qual_lines(
&self
) -> Option<impl Iterator<Item = &'a [u8]> + DoubleEndedIterator>
[src]
&self
) -> Option<impl Iterator<Item = &'a [u8]> + DoubleEndedIterator>
Returns an iterator over all quality lines in the data (if present).
The exact type of the iterator depends on the generic parameter S
.
pub fn check_lengths_strict(&self) -> Result<&Self, Error>
[src]
Checks if the lengths of the sequence and quality lines
are equal.
If not, returns an error of ErrorKind::UnequalLengths
.
In contrast to RefRecord::check_lengths
,
this method always removes line terminators before comparing the
lengths. Therefore, it will always return the correct result, even
if there is a mix of CR
and CRLF
line ends.
pub fn to_owned_record(&self) -> OwnedRecord
[src]
Returns a new OwnedRecord
with the same
data.
pub fn clone_into_owned(&self, rec: &mut OwnedRecord)
[src]
Copies the data of the record into an OwnedRecord
instance.
pub fn write_unchanged<W: Write>(&self, writer: W) -> Result<()>
[src]
Writes a record to the given io::Write
instance
by just writing the unmodified input, which is faster than BaseRecord::write
Trait Implementations
impl<'a, S> BaseRecord for RefRecord<'a, S> where
S: PositionStore,
[src]
S: PositionStore,
fn head(&self) -> &[u8]
[src]
fn seq(&self) -> &[u8]
[src]
fn full_seq(&self) -> Cow<'_, [u8]>
[src]
fn full_seq_given<'s, F>(&'s self, owned_fn: F) -> Cow<'s, [u8]> where
F: FnOnce() -> &'s mut Vec<u8>,
Self: Sized,
[src]
F: FnOnce() -> &'s mut Vec<u8>,
Self: Sized,
fn num_seq_lines(&self) -> usize
[src]
fn has_quality(&self) -> bool
[src]
fn opt_qual(&self) -> Option<&[u8]>
[src]
fn opt_full_qual(&self) -> Option<Cow<'_, [u8]>>
[src]
fn opt_full_qual_given<'s, F>(&'s self, owned_fn: F) -> Option<Cow<'s, [u8]>> where
F: FnOnce() -> &'s mut Vec<u8>,
[src]
F: FnOnce() -> &'s mut Vec<u8>,
fn num_qual_lines(&self) -> usize
[src]
fn write<W>(&self, writer: W) -> Result<()> where
W: Write,
Self: Sized,
[src]
W: Write,
Self: Sized,
fn id_bytes(&self) -> &[u8]
[src]
fn id(&self) -> Result<&str, Utf8Error>
[src]
fn desc_bytes(&self) -> Option<&[u8]>
[src]
fn desc(&self) -> Option<Result<&str, Utf8Error>>
[src]
fn id_desc_bytes(&self) -> (&[u8], Option<&[u8]>)
[src]
fn id_desc(&self) -> Result<(&str, Option<&str>), Utf8Error>
[src]
impl<'a, S: Clone> Clone for RefRecord<'a, S> where
S: PositionStore,
[src]
S: PositionStore,
impl<'a, S: Debug> Debug for RefRecord<'a, S> where
S: PositionStore,
[src]
S: PositionStore,
impl<'a, S> From<RefRecord<'a, S>> for RefRecord<'a, S> where
S: PositionStore,
[src]
S: PositionStore,
impl<'a, S> From<RefRecord<'a, S>> for RefRecord<'a, S> where
S: PositionStore,
[src]
S: PositionStore,
impl<'a, S> From<RefRecord<'a, S>> for RefRecord<'a, S> where
S: PositionStore,
[src]
S: PositionStore,
impl<'a, S> From<RefRecord<'a, S>> for RefRecord<'a, S> where
S: PositionStore,
[src]
S: PositionStore,
impl<'a, S> Record for RefRecord<'a, S> where
S: PositionStore,
[src]
S: PositionStore,
Auto Trait Implementations
impl<'a, S> RefUnwindSafe for RefRecord<'a, S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
impl<'a, S> Send for RefRecord<'a, S>
impl<'a, S> Sync for RefRecord<'a, S>
impl<'a, S> Unpin for RefRecord<'a, S>
impl<'a, S> UnwindSafe for RefRecord<'a, S> where
S: RefUnwindSafe,
S: RefUnwindSafe,
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,
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> Pointable for T
const ALIGN: usize
type Init = T
The type for initializers.
unsafe fn init(init: <T as Pointable>::Init) -> usize
unsafe fn deref<'a>(ptr: usize) -> &'a T
unsafe fn deref_mut<'a>(ptr: usize) -> &'a mut T
unsafe fn drop(ptr: usize)
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
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.
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>,