pub fn position(&self) -> Option<sam::record::Position> {
        let pos = self.pos;

        if pos == UNMAPPED_POSITION {
            None
        } else {
            sam::record::Position::try_from(pos + 1).ok()
        }
    }
/// Returns the start position of this record.
///
/// Despite the BAM format using 0-based positions, this normalizes the value as a 1-based
/// position.
///
/// # Examples
///
/// ```
/// use noodles_bam as bam;
/// let record = bam::Record::default();
/// assert!(record.position().is_none());
/// ```
Returns the start position of this record.
Despite the BAM format using 0-based positions, this normalizes the value as a 1-based
position.
Returns the start position of this record . Despite the BAM format using 0 - based positions this normalizes the value as a 1 - based position .
pub fn position(&self) -> Option<sam::record::Position> {
        let pos = self.pos;
        if pos == UNMAPPED_POSITION {
            None
        } else {
            sam::record::Position::try_from(pos + 1).ok()
        }
    }
pub fn position ( & self ) -> Option < sam :: record :: Position > { let pos = self . pos ; if pos == UNMAPPED_POSITION { None } else { sam :: record :: Position :: try_from ( pos + 1 ) . ok ( ) } }
Returns the start position of this record.
Returns the start position of this record .
&self
&self
examples
```
use noodles_bam as bam;
let record = bam::Record::default();
assert!(record.position().is_none());
```
` ` ` use noodles_bam as bam ; let record = bam :: Record :: default () ; assert! ( record . position () . is_none () ) ; ` ` `