pub struct Field { /* private fields */ }
Expand description
A SAM record data field.
Implementations
sourceimpl Field
impl Field
sourcepub fn new(tag: Tag, value: Value) -> Self
pub fn new(tag: Tag, value: Value) -> Self
Creates a SAM record data field.
Examples
use noodles_sam::record::data::{field::{Tag, Value}, Field};
let field = Field::new(Tag::AlignmentHitCount, Value::Int(1));
Trait Implementations
impl StructuralPartialEq for Field
Auto Trait Implementations
impl RefUnwindSafe for Field
impl Send for Field
impl Sync for Field
impl Unpin for Field
impl UnwindSafe for Field
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
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.
sourcefn clone_into(&self, target: &mut T)
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