Struct chemfiles::FormatMetadata
source · pub struct FormatMetadata {Show 13 fields
pub name: &'static str,
pub extension: Option<&'static str>,
pub description: &'static str,
pub reference: &'static str,
pub read: bool,
pub write: bool,
pub memory: bool,
pub positions: bool,
pub velocities: bool,
pub unit_cell: bool,
pub atoms: bool,
pub bonds: bool,
pub residues: bool,
}Expand description
FormatMetadata contains metadata associated with one format.
Fields§
§name: &'static strName of the format.
extension: Option<&'static str>Extension associated with the format.
description: &'static strExtended, user-facing description of the format.
reference: &'static strURL pointing to the format definition/reference.
read: boolIs reading files in this format implemented?
write: boolIs writing files in this format implemented?
memory: boolDoes this format support in-memory IO?
positions: boolDoes this format support storing atomic positions?
velocities: boolDoes this format support storing atomic velocities?
unit_cell: boolDoes this format support storing unit cell information?
atoms: boolDoes this format support storing atom names or types?
bonds: boolDoes this format support storing bonds between atoms?
residues: boolDoes this format support storing residues?
Trait Implementations§
source§impl Clone for FormatMetadata
impl Clone for FormatMetadata
source§fn clone(&self) -> FormatMetadata
fn clone(&self) -> FormatMetadata
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moresource§impl Debug for FormatMetadata
impl Debug for FormatMetadata
source§impl PartialEq<FormatMetadata> for FormatMetadata
impl PartialEq<FormatMetadata> for FormatMetadata
source§fn eq(&self, other: &FormatMetadata) -> bool
fn eq(&self, other: &FormatMetadata) -> bool
This method tests for
self and other values to be equal, and is used
by ==.