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 str
Name of the format.
extension: Option<&'static str>
Extension associated with the format.
description: &'static str
Extended, user-facing description of the format.
reference: &'static str
URL pointing to the format definition/reference.
read: bool
Is reading files in this format implemented?
write: bool
Is writing files in this format implemented?
memory: bool
Does this format support in-memory IO?
positions: bool
Does this format support storing atomic positions?
velocities: bool
Does this format support storing atomic velocities?
unit_cell: bool
Does this format support storing unit cell information?
atoms: bool
Does this format support storing atom names or types?
bonds: bool
Does this format support storing bonds between atoms?
residues: bool
Does 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