pub struct ReadStructure { /* private fields */ }
Expand description

The read structure composed of one or more ReadSegments.

Implementations

Builds a new ReadStructure from a vector of ReadSegments. The offsets for the ReadSegments are not updated. Builds a new ReadStructure from a vector of ReadSegments.

Errors

Returns Err if the any segment but the last has an indefinite length, or no elements exist.

Returns true if the ReadStructure has a fixed (i.e. non-variable) length, false if there are segments but no fixed length.

Returns the fixed length if there is one.

Returns the number of segments in this read structure.

Returns the underlying elements in this read structure.

Returns an iterator over the read segments

Returns the ReadSegments in this read structure of the given kind.

Returns the template ReadSegments in this read structure

Returns the sample barcode ReadSegments in this read structure

Returns the molecular barcode ReadSegments in this read structure

Returns the skip ReadSegments in this read structure

Returns the first ReadSegment in this read structure

Returns the last ReadSegment in this read structure

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 this read structure as a string.

Returns a new read structure from a string, or Err if parsing failed.

The associated error which can be returned from parsing.

Returns the ReadSegment at the given index in the read structure.

The returned type after indexing.

The type of the elements being iterated over.

Which kind of iterator are we turning this into?

Creates an iterator from a value. Read more

Builds a new read structure from a slice of elements.

The type returned in the event of a conversion error.

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.