pub enum CifWriteError {
MissingBlockId,
InvalidBlockId(String),
MissingModelNumber {
model: u32,
},
ModelIndexOverflow {
model: usize,
},
AtomRowCountOverflow,
MissingAtomField {
atom: u32,
field: &'static str,
},
MissingAtomSiteId {
atom: u32,
},
InvalidBondAtom {
bond: usize,
atom: u32,
},
MissingBondField {
bond: usize,
endpoint: u8,
field: &'static str,
},
ConnectionIdsNotEnabled,
MissingConnectionTypeId,
}Expand description
A missing or invalid value that prevents canonical output.
Variants§
MissingBlockId
Neither _entry.id nor an explicit block identifier is available.
InvalidBlockId(String)
The explicit or stored data-block identifier is not a bare CIF token.
MissingModelNumber
A model lacks its deposited model number.
ModelIndexOverflow
A model position exceeds the core model-index representation.
AtomRowCountOverflow
The total number of atom-site rows exceeds the platform index space.
MissingAtomField
A required atom-site item is unavailable.
Fields
MissingAtomSiteId
An atom-site identifier is zero, which records an absent source value.
InvalidBondAtom
A bond points outside the atom table.
MissingBondField
A bond endpoint cannot be represented by label identifiers.
Fields
ConnectionIdsNotEnabled
Connectivity needs identifiers that the lowered graph does not retain.
MissingConnectionTypeId
Connectivity has no explicitly declared dictionary connection type.
Trait Implementations§
Source§impl Clone for CifWriteError
impl Clone for CifWriteError
Source§impl Debug for CifWriteError
impl Debug for CifWriteError
Source§impl Display for CifWriteError
impl Display for CifWriteError
impl Eq for CifWriteError
Source§impl Error for CifWriteError
impl Error for CifWriteError
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()
Source§impl From<CifWriteError> for CifWriteToError
impl From<CifWriteError> for CifWriteToError
Source§fn from(error: CifWriteError) -> Self
fn from(error: CifWriteError) -> Self
Converts to this type from the input type.
Source§impl PartialEq for CifWriteError
impl PartialEq for CifWriteError
impl StructuralPartialEq for CifWriteError
Auto Trait Implementations§
impl Freeze for CifWriteError
impl RefUnwindSafe for CifWriteError
impl Send for CifWriteError
impl Sync for CifWriteError
impl Unpin for CifWriteError
impl UnsafeUnpin for CifWriteError
impl UnwindSafe for CifWriteError
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<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more