#[repr(C)]pub struct PathName {
pub sample: u32,
pub contig: u32,
pub phase: u32,
pub fragment: u32,
}Expand description
A structured path name relative to Metadata.
Each path name in the same metadata structure must be unique. A path name has four components: sample, contig, phase (haplotype), and fragment (count).
- Samples correspond to sample identifiers in the metadata.
- Contigs correspond to contig identifiers in the metadata.
- Each (sample, phase) combination corresponds to a haplotype in the metadata.
- Fragment field can be used as a fragment index for fragments from the sequence identified by (sample, contig, phase). It can also be used as the starting offset of the fragment in the corresponding sequence.
See also FullPathName for a stand-alone structure that contains the same information.
Fields§
§sample: u32Sample identifier.
contig: u32Contig identifier.
phase: u32Phase / haplotype identifier.
fragment: u32Fragment identifier / running count.
Implementations§
Trait Implementations§
Source§impl Serializable for PathName
impl Serializable for PathName
impl Copy for PathName
impl Eq for PathName
impl StructuralPartialEq for PathName
Auto Trait Implementations§
impl Freeze for PathName
impl RefUnwindSafe for PathName
impl Send for PathName
impl Sync for PathName
impl Unpin for PathName
impl UnwindSafe for PathName
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<V> Serialize for Vwhere
V: Serializable,
impl<V> Serialize for Vwhere
V: Serializable,
Source§fn serialize_header<T>(&self, _: &mut T) -> Result<(), Error>where
T: Write,
fn serialize_header<T>(&self, _: &mut T) -> Result<(), Error>where
T: Write,
Serializes the header to the writer. Read more
Source§fn serialize_body<T>(&self, writer: &mut T) -> Result<(), Error>where
T: Write,
fn serialize_body<T>(&self, writer: &mut T) -> Result<(), Error>where
T: Write,
Serializes the body to the writer. Read more
Source§fn load<T>(reader: &mut T) -> Result<V, Error>where
T: Read,
fn load<T>(reader: &mut T) -> Result<V, Error>where
T: Read,
Loads the struct from the reader. Read more
Source§fn size_in_elements(&self) -> usize
fn size_in_elements(&self) -> usize
Source§fn serialize<T>(&self, writer: &mut T) -> Result<(), Error>where
T: Write,
fn serialize<T>(&self, writer: &mut T) -> Result<(), Error>where
T: Write,
Serializes the struct to the writer. Read more
Source§fn size_in_bytes(&self) -> usize
fn size_in_bytes(&self) -> usize
Returns the size of the serialized struct in bytes. Read more