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 for FormatMetadata
impl PartialEq 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 ==.impl Eq for FormatMetadata
impl StructuralEq for FormatMetadata
impl StructuralPartialEq for FormatMetadata
Auto Trait Implementations§
impl RefUnwindSafe for FormatMetadata
impl Send for FormatMetadata
impl Sync for FormatMetadata
impl Unpin for FormatMetadata
impl UnwindSafe for FormatMetadata
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