pub fn clear(&mut self) {
        self.buf.clear();
        self.set_format_count(0);
        self.set_sample_count(0);
    }
/// Removes all genotype fields.
///
/// This does not affect the capacity of the buffer.
///
/// # Examples
///
/// ```
/// use noodles_bcf::record::Genotypes;
/// let mut genotypes = Genotypes::default();
/// genotypes.clear();
/// assert!(genotypes.is_empty());
/// ```
Removes all genotype fields.
This does not affect the capacity of the buffer.
Removes all genotype fields . This does not affect the capacity of the buffer .
pub fn clear(&mut self) {
        self.buf.clear();
        self.set_format_count(0);
        self.set_sample_count(0);
    }
pub fn clear ( & mut self ) { self . buf . clear ( ) ; self . set_format_count ( 0 ) ; self . set_sample_count ( 0 ) ; }
Removes all genotype fields.
Removes all genotype fields .
&mut self
&mut self
examples
```
use noodles_bcf::record::Genotypes;
let mut genotypes = Genotypes::default();
genotypes.clear();
assert!(genotypes.is_empty());
```
` ` ` use noodles_bcf :: record :: Genotypes ; let mut genotypes = Genotypes :: default () ; genotypes . clear () ; assert! ( genotypes . is_empty () ) ; ` ` `