pub enum CifError {
NoAtomSiteLoop,
MissingCoordinateColumns,
UnknownElement(String),
InvalidCoordinate(String),
InvalidCellParameters(String),
MissingCellParameters,
}Expand description
Errors that can occur when parsing CIF files.
Variants§
NoAtomSiteLoop
No _atom_site_* loop with coordinates was found.
MissingCoordinateColumns
The atom site loop lacked at least one coordinate column.
UnknownElement(String)
An element symbol or label could not be resolved.
InvalidCoordinate(String)
A coordinate value could not be parsed as a float.
InvalidCellParameters(String)
The unit cell has degenerate angles (e.g. γ = 0° or 180°) that make the fractional → Cartesian transformation undefined.
MissingCellParameters
The atom site loop uses fractional coordinates but the CIF contains no
_cell_length_* / _cell_angle_* parameters to convert them.
Trait Implementations§
Source§impl Error for CifError
impl Error for CifError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for CifError
Auto Trait Implementations§
impl Freeze for CifError
impl RefUnwindSafe for CifError
impl Send for CifError
impl Sync for CifError
impl Unpin for CifError
impl UnsafeUnpin for CifError
impl UnwindSafe for CifError
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