Struct noodles_bcf::record::Filters
source · [−]pub struct Filters(_);
Expand description
BCF record filters.
Implementations
sourceimpl Filters
impl Filters
sourcepub fn try_into_vcf_record_filters(
&self,
string_string_map: &StringStringMap
) -> Result<Option<Filters>>
pub fn try_into_vcf_record_filters(
&self,
string_string_map: &StringStringMap
) -> Result<Option<Filters>>
Converts BCF record filters to VCF record filters.
Examples
use noodles_bcf::{header::StringMaps, record::Filters};
let bcf_filters = Filters::default();
let string_maps = StringMaps::default();
let vcf_filters = bcf_filters.try_into_vcf_record_filters(string_maps.strings())?;
assert!(vcf_filters.is_none());
sourcepub fn len(&self) -> usize
pub fn len(&self) -> usize
Returns the number of filters.
Examples
use noodles_bcf::record::Filters;
let filters = Filters::default();
assert_eq!(filters.len(), 0);
Trait Implementations
impl Eq for Filters
impl StructuralEq for Filters
impl StructuralPartialEq for Filters
Auto Trait Implementations
impl RefUnwindSafe for Filters
impl Send for Filters
impl Sync for Filters
impl Unpin for Filters
impl UnwindSafe for Filters
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<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
impl<Q, K> Equivalent<K> for Q where
Q: Eq + ?Sized,
K: Borrow<Q> + ?Sized,
sourcefn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to key
and return true
if they are equal.
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