Struct seq_io::fasta::OwnedRecord
source · pub struct OwnedRecord {
pub head: Vec<u8>,
pub seq: Vec<u8>,
}
Expand description
A FASTA record that ownes its data (requiring two allocations)
Fields§
§head: Vec<u8>
§seq: Vec<u8>
Trait Implementations§
source§impl Clone for OwnedRecord
impl Clone for OwnedRecord
source§fn clone(&self) -> OwnedRecord
fn clone(&self) -> OwnedRecord
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Debug for OwnedRecord
impl Debug for OwnedRecord
source§impl<'de> Deserialize<'de> for OwnedRecord
impl<'de> Deserialize<'de> for OwnedRecord
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 PartialEq<OwnedRecord> for OwnedRecord
impl PartialEq<OwnedRecord> for OwnedRecord
source§fn eq(&self, other: &OwnedRecord) -> bool
fn eq(&self, other: &OwnedRecord) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.source§impl Record for OwnedRecord
impl Record for OwnedRecord
source§fn write<W: Write>(&self, writer: W) -> Result<()>
fn write<W: Write>(&self, writer: W) -> Result<()>
Write the record to the given
io::Write
instance. The sequence will occupy one line only.source§fn write_wrap<W: Write>(&self, writer: W, wrap: usize) -> Result<()>
fn write_wrap<W: Write>(&self, writer: W, wrap: usize) -> Result<()>
Write the record to the given
io::Write
instance. The sequence is wrapped to produce
multi-line FASTA with a maximum width specified by wrap
.fn id_bytes(&self) -> &[u8] ⓘ
source§fn id(&self) -> Result<&str, Utf8Error>
fn id(&self) -> Result<&str, Utf8Error>
Return the ID of the record (everything before an optional space) as string slice
fn desc_bytes(&self) -> Option<&[u8]>
source§fn desc(&self) -> Option<Result<&str, Utf8Error>>
fn desc(&self) -> Option<Result<&str, Utf8Error>>
Return the description of the record as string slice, if present. Otherwise,
None
is returned.source§impl Serialize for OwnedRecord
impl Serialize for OwnedRecord
impl Eq for OwnedRecord
impl StructuralEq for OwnedRecord
impl StructuralPartialEq for OwnedRecord
Auto Trait Implementations§
impl RefUnwindSafe for OwnedRecord
impl Send for OwnedRecord
impl Sync for OwnedRecord
impl Unpin for OwnedRecord
impl UnwindSafe for OwnedRecord
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