pub fn new(
        reference_sequence_id: Option<bam::record::ReferenceSequenceId>,
        alignment_start: i32,
        alignment_span: i32,
        offset: u64,
        landmark: u64,
        slice_length: u64,
    ) -> Self {
        Self {
            reference_sequence_id,
            alignment_start,
            alignment_span,
            offset,
            landmark,
            slice_length,
        }
    }
/// Creates a CRAM index record.
///
/// # Examples
///
/// ```
/// use noodles_bam as bam;
/// use noodles_cram::crai;
///
/// let record = crai::Record::new(
///     bam::record::ReferenceSequenceId::try_from(0).map(Some)?,
///     10946,
///     6765,
///     17711,
///     233,
///     317811,
/// );
/// # Ok::<(), bam::record::reference_sequence_id::TryFromIntError>(())
/// ```
Creates a CRAM index record.
Creates a CRAM index record .
pub fn new(
        reference_sequence_id: Option<bam::record::ReferenceSequenceId>,
        alignment_start: i32,
        alignment_span: i32,
        offset: u64,
        landmark: u64,
        slice_length: u64,
    ) -> Self {
        Self {
            reference_sequence_id,
            alignment_start,
            alignment_span,
            offset,
            landmark,
            slice_length,
        }
    }
pub fn new ( reference_sequence_id : Option < bam :: record :: ReferenceSequenceId > , alignment_start : i32 , alignment_span : i32 , offset : u64 , landmark : u64 , slice_length : u64 , ) -> Self { Self { reference_sequence_id , alignment_start , alignment_span , offset , landmark , slice_length , } }
Creates a CRAM index record.
Creates a CRAM index record .
reference_sequence_id
Option<bam::record::ReferenceSequenceId>
alignment_start
i32
alignment_span
i32
offset
u64
landmark
u64
slice_length
u64
reference_sequence_id
Option<bam::record::ReferenceSequenceId>
alignment_start
i32
alignment_span
i32
offset
u64
landmark
u64
slice_length
u64
examples
```
use noodles_bam as bam;
use noodles_cram::crai.


` ` ` use noodles_bam as bam ; use noodles_cram :: crai .
ok::<(), bam::record::reference_sequence_id::tryfrominterror>(())
None