Struct bam::record::Flag[][src]

pub struct Flag(pub u16);
Expand description

A wrapper around BAM/SAM flag.

You can check flag as record.flag().is_paired() or record.flag().0 | IS_PAIRED == 0. You can also modify the flag as record.flag_mut().set_paired(true) or record.flag_mut().0 |= IS_PAIRED.

Tuple Fields

0: u16

Implementations

Checks if all bits match the mask.

Checks if any bit matches the mask.

Checks if all bits do not match the mask.

Returns true if the record fails filters, such as platform/vendor quality controls.

Returns true if the record is PCR or optical duplicate.

Modifies the record flag. This function does not do any checks.

Modifies the record flag. This function does not do any checks.

Modifies the record flag. This function does not do any checks.

Modifies the record flag. This function does not do any checks and does not modify the mate record.

Sets the record strand. Use true to set to forward strand, and false for the reverse strand.

Sets the strand of the mate. Use true to set to forward strand, and false for the reverse strand. This function does not do any checks and does not modify the mate record.

Modifies the record flag. This function does not do any checks.

Use true to set the flag bit and false to unset.

Modifies the record flag. This function does not do any checks.

Use true to set the flag bit and false to unset.

Modifies the record flag. This function does not do any checks.

Use true to set the flag bit and false to unset.

Sets the record flag to fail or pass filters, such as platform/vendor quality controls.

Use true to set the flag bit and false to unset.

Sets the record as PCR or optical duplicate.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

Converts the given value to a String. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.